forked from Elara6331/itd
Switch from custom socket API to rpcx
This commit is contained in:
15
api/set.go
Normal file
15
api/set.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
)
|
||||
|
||||
func (c *Client) SetTime(t time.Time) error {
|
||||
return c.itdClient.Call(
|
||||
context.Background(),
|
||||
"SetTime",
|
||||
t,
|
||||
nil,
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user