Documentation
¶
Index ¶
- type Worker
- func (w *Worker) Connect() error
- func (w *Worker) GetInfo(client *rpc2.Client, req proto.GetInfoReq, resp *proto.GetInfoResp) error
- func (w *Worker) Ping(client *rpc2.Client, req proto.PingReq, resp *proto.PingResp) error
- func (w *Worker) RunScript(script string) ([]byte, error)
- func (w *Worker) SendMessage(client *rpc2.Client, req proto.SendMessageReq, resp *proto.SendMessageResp) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) GetInfo ¶
func (w *Worker) GetInfo(client *rpc2.Client, req proto.GetInfoReq, resp *proto.GetInfoResp) error
GetInfo implements proto.WorkerService
func (*Worker) SendMessage ¶
func (w *Worker) SendMessage(client *rpc2.Client, req proto.SendMessageReq, resp *proto.SendMessageResp) error
SendMessage implements proto.WorkerService
Click to show internal directories.
Click to hide internal directories.