Documentation ¶
Index ¶
- func New(c *conf.Config, s *v1.Service, s2 *v2.Service) (svr *rpc.Server)
- type RPC
- func (r *RPC) ClearHost(c context.Context, svr string, res *struct{}) error
- func (r *RPC) Force(c context.Context, a *model.ArgConf, res *struct{}) (err error)
- func (r *RPC) Hosts(c context.Context, svr string, res *[]*model.Host) (err error)
- func (r *RPC) Ping(c context.Context, arg *struct{}, res *struct{}) (err error)
- func (r *RPC) Push(c context.Context, a *model.ArgConf, res *struct{}) (err error)
- func (r *RPC) PushV4(c context.Context, a *model.ArgConf, res *struct{}) (err error)
- func (r *RPC) SetToken(c context.Context, a *model.ArgToken, res *struct{}) (err error)
- func (r *RPC) SetTokenV4(c context.Context, a *model.ArgToken, res *struct{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RPC ¶
type RPC struct {
// contains filtered or unexported fields
}
RPC export rpc service
Click to show internal directories.
Click to hide internal directories.