job

package
v0.0.0-...-b63aa1a Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

func RegisterService(s giraffe_micro.Server, srv Service)

Types

type Client

type Client interface {
	RunJob(ctx context.Context, in *RunJobRequest) (*RunJobResponse, error)
}

Client is the client API for job service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewClient

func NewClient(c giraffe_micro.Client) Client

type RunJobRequest

type RunJobRequest struct {
	//
	//配置Ids
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids" form:"ids"`
	//
	//是否进行数据上报
	ToReport             bool     `protobuf:"varint,2,opt,name=toReport,proto3" json:"toReport" form:"toReport"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RunJob请求

func (*RunJobRequest) Descriptor

func (*RunJobRequest) Descriptor() ([]byte, []int)

func (*RunJobRequest) GetIds

func (m *RunJobRequest) GetIds() []string

func (*RunJobRequest) GetToReport

func (m *RunJobRequest) GetToReport() bool

func (*RunJobRequest) ProtoMessage

func (*RunJobRequest) ProtoMessage()

func (*RunJobRequest) Reset

func (m *RunJobRequest) Reset()

func (*RunJobRequest) String

func (m *RunJobRequest) String() string

func (*RunJobRequest) Validate

func (this *RunJobRequest) Validate() error

func (*RunJobRequest) XXX_DiscardUnknown

func (m *RunJobRequest) XXX_DiscardUnknown()

func (*RunJobRequest) XXX_Marshal

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

func (*RunJobRequest) XXX_Merge

func (m *RunJobRequest) XXX_Merge(src proto.Message)

func (*RunJobRequest) XXX_Size

func (m *RunJobRequest) XXX_Size() int

func (*RunJobRequest) XXX_Unmarshal

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

type RunJobResponse

type RunJobResponse struct {
	//
	//配置数量
	Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count" form:"count"`
	//
	//请求状态
	Status               string   `protobuf:"bytes,2,opt,name=status,proto3" json:"status" form:"status"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RunJob返回

func (*RunJobResponse) Descriptor

func (*RunJobResponse) Descriptor() ([]byte, []int)

func (*RunJobResponse) GetCount

func (m *RunJobResponse) GetCount() int32

func (*RunJobResponse) GetStatus

func (m *RunJobResponse) GetStatus() string

func (*RunJobResponse) ProtoMessage

func (*RunJobResponse) ProtoMessage()

func (*RunJobResponse) Reset

func (m *RunJobResponse) Reset()

func (*RunJobResponse) String

func (m *RunJobResponse) String() string

func (*RunJobResponse) Validate

func (this *RunJobResponse) Validate() error

func (*RunJobResponse) XXX_DiscardUnknown

func (m *RunJobResponse) XXX_DiscardUnknown()

func (*RunJobResponse) XXX_Marshal

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

func (*RunJobResponse) XXX_Merge

func (m *RunJobResponse) XXX_Merge(src proto.Message)

func (*RunJobResponse) XXX_Size

func (m *RunJobResponse) XXX_Size() int

func (*RunJobResponse) XXX_Unmarshal

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

type RunJobResponseWrapper

type RunJobResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *RunJobResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

RunJobApi返回

func (*RunJobResponseWrapper) Descriptor

func (*RunJobResponseWrapper) Descriptor() ([]byte, []int)

func (*RunJobResponseWrapper) GetCode

func (m *RunJobResponseWrapper) GetCode() int32

func (*RunJobResponseWrapper) GetCodeExplain

func (m *RunJobResponseWrapper) GetCodeExplain() string

func (*RunJobResponseWrapper) GetData

func (m *RunJobResponseWrapper) GetData() *RunJobResponse

func (*RunJobResponseWrapper) GetError

func (m *RunJobResponseWrapper) GetError() string

func (*RunJobResponseWrapper) ProtoMessage

func (*RunJobResponseWrapper) ProtoMessage()

func (*RunJobResponseWrapper) Reset

func (m *RunJobResponseWrapper) Reset()

func (*RunJobResponseWrapper) String

func (m *RunJobResponseWrapper) String() string

func (*RunJobResponseWrapper) Validate

func (this *RunJobResponseWrapper) Validate() error

func (*RunJobResponseWrapper) XXX_DiscardUnknown

func (m *RunJobResponseWrapper) XXX_DiscardUnknown()

func (*RunJobResponseWrapper) XXX_Marshal

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

func (*RunJobResponseWrapper) XXX_Merge

func (m *RunJobResponseWrapper) XXX_Merge(src proto.Message)

func (*RunJobResponseWrapper) XXX_Size

func (m *RunJobResponseWrapper) XXX_Size() int

func (*RunJobResponseWrapper) XXX_Unmarshal

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

type Service

type Service interface {
	RunJob(context.Context, *RunJobRequest) (*RunJobResponse, error)
}

Service is the server API for job service.

Jump to

Keyboard shortcuts

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