Documentation ¶
Index ¶
- Variables
- func NewOrderEndpoints() []*api.Endpoint
- func RegisterOrderHandler(s server.Server, hdlr OrderHandler, opts ...server.HandlerOption) error
- type CancelReq
- type MMessage
- func (*MMessage) Descriptor() ([]byte, []int)deprecated
- func (x *MMessage) GetFunction() uint32
- func (x *MMessage) GetIndex() uint32
- func (x *MMessage) GetParNo() uint32
- func (x *MMessage) GetParams() []uint32
- func (*MMessage) ProtoMessage()
- func (x *MMessage) ProtoReflect() protoreflect.Message
- func (x *MMessage) Reset()
- func (x *MMessage) String() string
- type OrderHandler
- type OrderService
- type QAMessage
- func (*QAMessage) Descriptor() ([]byte, []int)deprecated
- func (x *QAMessage) GetParams() []uint32
- func (x *QAMessage) GetPriority() uint32
- func (x *QAMessage) GetTsID() uint32
- func (*QAMessage) ProtoMessage()
- func (x *QAMessage) ProtoReflect() protoreflect.Message
- func (x *QAMessage) Reset()
- func (x *QAMessage) String() string
- type QBMessage
- func (*QBMessage) Descriptor() ([]byte, []int)deprecated
- func (x *QBMessage) GetCode() uint32
- func (x *QBMessage) GetIkey() uint32
- func (x *QBMessage) GetParams() []uint32
- func (x *QBMessage) GetPriority() uint32
- func (x *QBMessage) GetTsID() uint32
- func (*QBMessage) ProtoMessage()
- func (x *QBMessage) ProtoReflect() protoreflect.Message
- func (x *QBMessage) Reset()
- func (x *QBMessage) String() string
- type Request
- type Response
- type Task
- func (*Task) Descriptor() ([]byte, []int)deprecated
- func (x *Task) GetIkey() uint32
- func (x *Task) GetParams() []int32
- func (x *Task) GetPriority() uint32
- func (x *Task) GetTsId() uint32
- func (*Task) ProtoMessage()
- func (x *Task) ProtoReflect() protoreflect.Message
- func (x *Task) Reset()
- func (x *Task) String() string
- type UpdateReq
- func (*UpdateReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateReq) GetIndex() uint32
- func (x *UpdateReq) GetParaNo() uint32
- func (x *UpdateReq) GetValue() uint32
- func (*UpdateReq) ProtoMessage()
- func (x *UpdateReq) ProtoReflect() protoreflect.Message
- func (x *UpdateReq) Reset()
- func (x *UpdateReq) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_order_order_proto protoreflect.FileDescriptor
Functions ¶
func NewOrderEndpoints ¶
func RegisterOrderHandler ¶
func RegisterOrderHandler(s server.Server, hdlr OrderHandler, opts ...server.HandlerOption) error
Types ¶
type CancelReq ¶
type CancelReq struct { Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
func (*CancelReq) Descriptor
deprecated
func (*CancelReq) ProtoMessage ¶
func (*CancelReq) ProtoMessage()
func (*CancelReq) ProtoReflect ¶
func (x *CancelReq) ProtoReflect() protoreflect.Message
type MMessage ¶
type MMessage struct { Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Function uint32 `protobuf:"varint,2,opt,name=function,proto3" json:"function,omitempty"` ParNo uint32 `protobuf:"varint,3,opt,name=parNo,proto3" json:"parNo,omitempty"` Params []uint32 `protobuf:"varint,4,rep,packed,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
func (*MMessage) Descriptor
deprecated
func (*MMessage) GetFunction ¶
func (*MMessage) ProtoMessage ¶
func (*MMessage) ProtoMessage()
func (*MMessage) ProtoReflect ¶
func (x *MMessage) ProtoReflect() protoreflect.Message
type OrderHandler ¶
type OrderHandler interface { //取消任务 CancelTask(context.Context, *CancelReq, *Response) error //修改参数 UpdateTask(context.Context, *UpdateReq, *Response) error SendQAMessage(context.Context, *QAMessage, *Response) error SendQBMessage(context.Context, *QBMessage, *Response) error SendMMessage(context.Context, *MMessage, *Response) error HostIsConnected(context.Context, *Request, *Response) error }
type OrderService ¶
type OrderService interface { //取消任务 CancelTask(ctx context.Context, in *CancelReq, opts ...client.CallOption) (*Response, error) //修改参数 UpdateTask(ctx context.Context, in *UpdateReq, opts ...client.CallOption) (*Response, error) SendQAMessage(ctx context.Context, in *QAMessage, opts ...client.CallOption) (*Response, error) SendQBMessage(ctx context.Context, in *QBMessage, opts ...client.CallOption) (*Response, error) SendMMessage(ctx context.Context, in *MMessage, opts ...client.CallOption) (*Response, error) HostIsConnected(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) }
func NewOrderService ¶
func NewOrderService(name string, c client.Client) OrderService
type QAMessage ¶
type QAMessage struct { TsID uint32 `protobuf:"varint,1,opt,name=tsID,proto3" json:"tsID,omitempty"` Priority uint32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` Params []uint32 `protobuf:"varint,3,rep,packed,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
func (*QAMessage) Descriptor
deprecated
func (*QAMessage) GetPriority ¶
func (*QAMessage) ProtoMessage ¶
func (*QAMessage) ProtoMessage()
func (*QAMessage) ProtoReflect ¶
func (x *QAMessage) ProtoReflect() protoreflect.Message
type QBMessage ¶
type QBMessage struct { TsID uint32 `protobuf:"varint,1,opt,name=tsID,proto3" json:"tsID,omitempty"` Priority uint32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` Code uint32 `protobuf:"varint,3,opt,name=code,proto3" json:"code,omitempty"` Ikey uint32 `protobuf:"varint,4,opt,name=ikey,proto3" json:"ikey,omitempty"` Params []uint32 `protobuf:"varint,5,rep,packed,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
func (*QBMessage) Descriptor
deprecated
func (*QBMessage) GetPriority ¶
func (*QBMessage) ProtoMessage ¶
func (*QBMessage) ProtoMessage()
func (*QBMessage) ProtoReflect ¶
func (x *QBMessage) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Res bool `protobuf:"varint,1,opt,name=res,proto3" json:"res,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetMessage ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type Task ¶
type Task struct { TsId uint32 `protobuf:"varint,1,opt,name=tsId,proto3" json:"tsId,omitempty"` Priority uint32 `protobuf:"varint,2,opt,name=priority,proto3" json:"priority,omitempty"` Ikey uint32 `protobuf:"varint,3,opt,name=ikey,proto3" json:"ikey,omitempty"` Params []int32 `protobuf:"varint,4,rep,packed,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
func (*Task) Descriptor
deprecated
func (*Task) GetPriority ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
type UpdateReq ¶
type UpdateReq struct { Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` //调度系统的任务编号 ParaNo uint32 `protobuf:"varint,2,opt,name=paraNo,proto3" json:"paraNo,omitempty"` //参数索引 Value uint32 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"` //参数值 // contains filtered or unexported fields }
func (*UpdateReq) Descriptor
deprecated
func (*UpdateReq) ProtoMessage ¶
func (*UpdateReq) ProtoMessage()
func (*UpdateReq) ProtoReflect ¶
func (x *UpdateReq) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.