Documentation ¶
Index ¶
- func RegisterTaskServerServer(s *grpc.Server, srv TaskServerServer)
- type RemoveTaskReply
- func (*RemoveTaskReply) Descriptor() ([]byte, []int)
- func (m *RemoveTaskReply) GetIsSuccess() bool
- func (*RemoveTaskReply) ProtoMessage()
- func (m *RemoveTaskReply) Reset()
- func (m *RemoveTaskReply) String() string
- func (m *RemoveTaskReply) XXX_DiscardUnknown()
- func (m *RemoveTaskReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RemoveTaskReply) XXX_Merge(src proto.Message)
- func (m *RemoveTaskReply) XXX_Size() int
- func (m *RemoveTaskReply) XXX_Unmarshal(b []byte) error
- type RemoveTaskRequest
- func (*RemoveTaskRequest) Descriptor() ([]byte, []int)
- func (m *RemoveTaskRequest) GetId() string
- func (m *RemoveTaskRequest) GetNamespace() string
- func (*RemoveTaskRequest) ProtoMessage()
- func (m *RemoveTaskRequest) Reset()
- func (m *RemoveTaskRequest) String() string
- func (m *RemoveTaskRequest) XXX_DiscardUnknown()
- func (m *RemoveTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RemoveTaskRequest) XXX_Merge(src proto.Message)
- func (m *RemoveTaskRequest) XXX_Size() int
- func (m *RemoveTaskRequest) XXX_Unmarshal(b []byte) error
- type TaskReply
- func (*TaskReply) Descriptor() ([]byte, []int)
- func (m *TaskReply) GetArgs() *_struct.Struct
- func (m *TaskReply) GetId() string
- func (m *TaskReply) GetJobName() string
- func (m *TaskReply) GetMasterId() string
- func (m *TaskReply) GetSpec() string
- func (*TaskReply) ProtoMessage()
- func (m *TaskReply) Reset()
- func (m *TaskReply) String() string
- func (m *TaskReply) XXX_DiscardUnknown()
- func (m *TaskReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TaskReply) XXX_Merge(src proto.Message)
- func (m *TaskReply) XXX_Size() int
- func (m *TaskReply) XXX_Unmarshal(b []byte) error
- type TaskRequest
- func (*TaskRequest) Descriptor() ([]byte, []int)
- func (m *TaskRequest) GetArgs() *_struct.Struct
- func (m *TaskRequest) GetJobName() string
- func (m *TaskRequest) GetNamespace() string
- func (m *TaskRequest) GetSpec() string
- func (*TaskRequest) ProtoMessage()
- func (m *TaskRequest) Reset()
- func (m *TaskRequest) String() string
- func (m *TaskRequest) XXX_DiscardUnknown()
- func (m *TaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TaskRequest) XXX_Merge(src proto.Message)
- func (m *TaskRequest) XXX_Size() int
- func (m *TaskRequest) XXX_Unmarshal(b []byte) error
- type TaskServerClient
- type TaskServerServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTaskServerServer ¶
func RegisterTaskServerServer(s *grpc.Server, srv TaskServerServer)
Types ¶
type RemoveTaskReply ¶
type RemoveTaskReply struct { IsSuccess bool `protobuf:"varint,1,opt,name=isSuccess,proto3" json:"isSuccess,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RemoveTaskReply) Descriptor ¶
func (*RemoveTaskReply) Descriptor() ([]byte, []int)
func (*RemoveTaskReply) GetIsSuccess ¶
func (m *RemoveTaskReply) GetIsSuccess() bool
func (*RemoveTaskReply) ProtoMessage ¶
func (*RemoveTaskReply) ProtoMessage()
func (*RemoveTaskReply) Reset ¶
func (m *RemoveTaskReply) Reset()
func (*RemoveTaskReply) String ¶
func (m *RemoveTaskReply) String() string
func (*RemoveTaskReply) XXX_DiscardUnknown ¶
func (m *RemoveTaskReply) XXX_DiscardUnknown()
func (*RemoveTaskReply) XXX_Marshal ¶
func (m *RemoveTaskReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RemoveTaskReply) XXX_Merge ¶
func (dst *RemoveTaskReply) XXX_Merge(src proto.Message)
func (*RemoveTaskReply) XXX_Size ¶
func (m *RemoveTaskReply) XXX_Size() int
func (*RemoveTaskReply) XXX_Unmarshal ¶
func (m *RemoveTaskReply) XXX_Unmarshal(b []byte) error
type RemoveTaskRequest ¶
type RemoveTaskRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RemoveTaskRequest) Descriptor ¶
func (*RemoveTaskRequest) Descriptor() ([]byte, []int)
func (*RemoveTaskRequest) GetId ¶
func (m *RemoveTaskRequest) GetId() string
func (*RemoveTaskRequest) GetNamespace ¶
func (m *RemoveTaskRequest) GetNamespace() string
func (*RemoveTaskRequest) ProtoMessage ¶
func (*RemoveTaskRequest) ProtoMessage()
func (*RemoveTaskRequest) Reset ¶
func (m *RemoveTaskRequest) Reset()
func (*RemoveTaskRequest) String ¶
func (m *RemoveTaskRequest) String() string
func (*RemoveTaskRequest) XXX_DiscardUnknown ¶
func (m *RemoveTaskRequest) XXX_DiscardUnknown()
func (*RemoveTaskRequest) XXX_Marshal ¶
func (m *RemoveTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RemoveTaskRequest) XXX_Merge ¶
func (dst *RemoveTaskRequest) XXX_Merge(src proto.Message)
func (*RemoveTaskRequest) XXX_Size ¶
func (m *RemoveTaskRequest) XXX_Size() int
func (*RemoveTaskRequest) XXX_Unmarshal ¶
func (m *RemoveTaskRequest) XXX_Unmarshal(b []byte) error
type TaskReply ¶
type TaskReply struct { MasterId string `protobuf:"bytes,1,opt,name=masterId,proto3" json:"masterId,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` JobName string `protobuf:"bytes,3,opt,name=jobName,proto3" json:"jobName,omitempty"` Spec string `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` Args *_struct.Struct `protobuf:"bytes,5,opt,name=args,proto3" json:"args,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TaskReply) Descriptor ¶
func (*TaskReply) GetJobName ¶
func (*TaskReply) GetMasterId ¶
func (*TaskReply) ProtoMessage ¶
func (*TaskReply) ProtoMessage()
func (*TaskReply) XXX_DiscardUnknown ¶
func (m *TaskReply) XXX_DiscardUnknown()
func (*TaskReply) XXX_Marshal ¶
func (*TaskReply) XXX_Unmarshal ¶
type TaskRequest ¶
type TaskRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` JobName string `protobuf:"bytes,2,opt,name=jobName,proto3" json:"jobName,omitempty"` Spec string `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"` Args *_struct.Struct `protobuf:"bytes,4,opt,name=args,proto3" json:"args,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TaskRequest) Descriptor ¶
func (*TaskRequest) Descriptor() ([]byte, []int)
func (*TaskRequest) GetArgs ¶
func (m *TaskRequest) GetArgs() *_struct.Struct
func (*TaskRequest) GetJobName ¶
func (m *TaskRequest) GetJobName() string
func (*TaskRequest) GetNamespace ¶
func (m *TaskRequest) GetNamespace() string
func (*TaskRequest) GetSpec ¶
func (m *TaskRequest) GetSpec() string
func (*TaskRequest) ProtoMessage ¶
func (*TaskRequest) ProtoMessage()
func (*TaskRequest) Reset ¶
func (m *TaskRequest) Reset()
func (*TaskRequest) String ¶
func (m *TaskRequest) String() string
func (*TaskRequest) XXX_DiscardUnknown ¶
func (m *TaskRequest) XXX_DiscardUnknown()
func (*TaskRequest) XXX_Marshal ¶
func (m *TaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TaskRequest) XXX_Merge ¶
func (dst *TaskRequest) XXX_Merge(src proto.Message)
func (*TaskRequest) XXX_Size ¶
func (m *TaskRequest) XXX_Size() int
func (*TaskRequest) XXX_Unmarshal ¶
func (m *TaskRequest) XXX_Unmarshal(b []byte) error
type TaskServerClient ¶
type TaskServerClient interface { AddTask(ctx context.Context, in *TaskRequest, opts ...grpc.CallOption) (*TaskReply, error) RemoveTask(ctx context.Context, in *RemoveTaskRequest, opts ...grpc.CallOption) (*RemoveTaskReply, error) }
TaskServerClient is the client API for TaskServer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTaskServerClient ¶
func NewTaskServerClient(cc *grpc.ClientConn) TaskServerClient
type TaskServerServer ¶
type TaskServerServer interface { AddTask(context.Context, *TaskRequest) (*TaskReply, error) RemoveTask(context.Context, *RemoveTaskRequest) (*RemoveTaskReply, error) }
TaskServerServer is the server API for TaskServer service.
Click to show internal directories.
Click to hide internal directories.