Documentation ¶
Overview ¶
Package worker is a generated protocol buffer package.
It is generated from these files:
worker.proto
It has these top-level messages:
InfoRequest InfoReply ExecRequest ExecReply
Index ¶
- func RegisterWorkerServer(s *grpc.Server, srv WorkerServer)
- type ExecReply
- type ExecRequest
- func (*ExecRequest) Descriptor() ([]byte, []int)
- func (m *ExecRequest) GetArgs() *google_protobuf.Any
- func (m *ExecRequest) GetData() *google_protobuf.Any
- func (m *ExecRequest) GetFunction() string
- func (*ExecRequest) ProtoMessage()
- func (m *ExecRequest) Reset()
- func (m *ExecRequest) String() string
- type InfoReply
- func (*InfoReply) Descriptor() ([]byte, []int)
- func (m *InfoReply) GetCapabilities() []string
- func (m *InfoReply) GetId() string
- func (m *InfoReply) GetMaxParallel() int32
- func (m *InfoReply) GetVersion() string
- func (*InfoReply) ProtoMessage()
- func (m *InfoReply) Reset()
- func (m *InfoReply) String() string
- type InfoRequest
- type WorkerClient
- type WorkerServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterWorkerServer ¶
func RegisterWorkerServer(s *grpc.Server, srv WorkerServer)
Types ¶
type ExecReply ¶
type ExecReply struct { }
Worker execution reply
func (*ExecReply) Descriptor ¶
func (*ExecReply) ProtoMessage ¶
func (*ExecReply) ProtoMessage()
type ExecRequest ¶
type ExecRequest struct { Function string `protobuf:"bytes,1,opt,name=function" json:"function,omitempty"` Args *google_protobuf.Any `protobuf:"bytes,2,opt,name=args" json:"args,omitempty"` Data *google_protobuf.Any `protobuf:"bytes,3,opt,name=data" json:"data,omitempty"` }
Worker execution request
func (*ExecRequest) Descriptor ¶
func (*ExecRequest) Descriptor() ([]byte, []int)
func (*ExecRequest) GetArgs ¶
func (m *ExecRequest) GetArgs() *google_protobuf.Any
func (*ExecRequest) GetData ¶
func (m *ExecRequest) GetData() *google_protobuf.Any
func (*ExecRequest) GetFunction ¶
func (m *ExecRequest) GetFunction() string
func (*ExecRequest) ProtoMessage ¶
func (*ExecRequest) ProtoMessage()
func (*ExecRequest) Reset ¶
func (m *ExecRequest) Reset()
func (*ExecRequest) String ¶
func (m *ExecRequest) String() string
type InfoReply ¶
type InfoReply struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` MaxParallel int32 `protobuf:"varint,3,opt,name=max_parallel,json=maxParallel" json:"max_parallel,omitempty"` Capabilities []string `protobuf:"bytes,4,rep,name=capabilities" json:"capabilities,omitempty"` }
Worker information reply
func (*InfoReply) Descriptor ¶
func (*InfoReply) GetCapabilities ¶
func (*InfoReply) GetMaxParallel ¶
func (*InfoReply) GetVersion ¶
func (*InfoReply) ProtoMessage ¶
func (*InfoReply) ProtoMessage()
type InfoRequest ¶
type InfoRequest struct { }
Worker information request
func (*InfoRequest) Descriptor ¶
func (*InfoRequest) Descriptor() ([]byte, []int)
func (*InfoRequest) ProtoMessage ¶
func (*InfoRequest) ProtoMessage()
func (*InfoRequest) Reset ¶
func (m *InfoRequest) Reset()
func (*InfoRequest) String ¶
func (m *InfoRequest) String() string
type WorkerClient ¶
type WorkerClient interface { // Request client informations Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoReply, error) Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecReply, error) }
func NewWorkerClient ¶
func NewWorkerClient(cc *grpc.ClientConn) WorkerClient
type WorkerServer ¶
type WorkerServer interface { // Request client informations Info(context.Context, *InfoRequest) (*InfoReply, error) Exec(context.Context, *ExecRequest) (*ExecReply, error) }
Click to show internal directories.
Click to hide internal directories.