Browse Source

更新pb.go

master
guzeng 3 years ago
parent
commit
1a1d4ec160
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      task.pb.go

+ 4
- 0
task.pb.go View File

@ -99,6 +99,7 @@ func init() {
type TaskService interface {
DoTask(in *Request, out *Response) error
DoCycleTask(in *Request, out *Response) error
}
// AcceptTaskServiceClient accepts connections on the listener and serves requests
@ -173,6 +174,9 @@ func NewTaskServiceClient(conn io.ReadWriteCloser) (*TaskServiceClient, *rpc.Cli
func (c *TaskServiceClient) DoTask(in *Request, out *Response) error {
return c.Call("TaskService.DoTask", in, out)
}
func (c *TaskServiceClient) DoCycleTask(in *Request, out *Response) error {
return c.Call("TaskService.DoCycleTask", in, out)
}
// DialTaskService connects to an TaskService at the specified network address.
func DialTaskService(network, addr string) (*TaskServiceClient, *rpc.Client, error) {


Loading…
Cancel
Save