task

package
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*TaskReply) GetArgs

func (m *TaskReply) GetArgs() *_struct.Struct

func (*TaskReply) GetId

func (m *TaskReply) GetId() string

func (*TaskReply) GetJobName

func (m *TaskReply) GetJobName() string

func (*TaskReply) GetMasterId

func (m *TaskReply) GetMasterId() string

func (*TaskReply) GetSpec

func (m *TaskReply) GetSpec() string

func (*TaskReply) ProtoMessage

func (*TaskReply) ProtoMessage()

func (*TaskReply) Reset

func (m *TaskReply) Reset()

func (*TaskReply) String

func (m *TaskReply) String() string

func (*TaskReply) XXX_DiscardUnknown

func (m *TaskReply) XXX_DiscardUnknown()

func (*TaskReply) XXX_Marshal

func (m *TaskReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TaskReply) XXX_Merge

func (dst *TaskReply) XXX_Merge(src proto.Message)

func (*TaskReply) XXX_Size

func (m *TaskReply) XXX_Size() int

func (*TaskReply) XXX_Unmarshal

func (m *TaskReply) XXX_Unmarshal(b []byte) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL