Documentation ¶
Index ¶
- Variables
- func RegisterPubConnectServer(s *grpc.Server, srv PubConnectServer)
- type PubConnectClient
- type PubConnectServer
- type PubConnect_DoWorkClient
- type PubConnect_DoWorkServer
- type RegReq
- func (*RegReq) Descriptor() ([]byte, []int)deprecated
- func (x *RegReq) GetAppName() string
- func (x *RegReq) GetPriKey() string
- func (x *RegReq) GetUuid() string
- func (*RegReq) ProtoMessage()
- func (x *RegReq) ProtoReflect() protoreflect.Message
- func (x *RegReq) Reset()
- func (x *RegReq) String() string
- type RegResp
- func (*RegResp) Descriptor() ([]byte, []int)deprecated
- func (x *RegResp) GetPriKey() string
- func (x *RegResp) GetRemark() string
- func (x *RegResp) GetStatus() string
- func (*RegResp) ProtoMessage()
- func (x *RegResp) ProtoReflect() protoreflect.Message
- func (x *RegResp) Reset()
- func (x *RegResp) String() string
- type UnimplementedPubConnectServer
- type WorkDetail
- func (*WorkDetail) Descriptor() ([]byte, []int)deprecated
- func (x *WorkDetail) GetAppName() string
- func (x *WorkDetail) GetAppUuid() string
- func (x *WorkDetail) GetErrCode() int32
- func (x *WorkDetail) GetName() string
- func (x *WorkDetail) GetParams() string
- func (x *WorkDetail) GetPriKey() string
- func (x *WorkDetail) GetRequestTime() int64
- func (x *WorkDetail) GetResponseTime() int64
- func (x *WorkDetail) GetResults() string
- func (x *WorkDetail) GetStatus() string
- func (x *WorkDetail) GetUuid() string
- func (*WorkDetail) ProtoMessage()
- func (x *WorkDetail) ProtoReflect() protoreflect.Message
- func (x *WorkDetail) Reset()
- func (x *WorkDetail) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pub_agent_proto protoreflect.FileDescriptor
Functions ¶
func RegisterPubConnectServer ¶
func RegisterPubConnectServer(s *grpc.Server, srv PubConnectServer)
Types ¶
type PubConnectClient ¶
type PubConnectClient interface { DoWork(ctx context.Context, opts ...grpc.CallOption) (PubConnect_DoWorkClient, error) Register(ctx context.Context, in *RegReq, opts ...grpc.CallOption) (*RegResp, error) DeRegister(ctx context.Context, in *RegReq, opts ...grpc.CallOption) (*RegResp, error) }
PubConnectClient is the client API for PubConnect service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPubConnectClient ¶
func NewPubConnectClient(cc grpc.ClientConnInterface) PubConnectClient
type PubConnectServer ¶
type PubConnectServer interface { DoWork(PubConnect_DoWorkServer) error Register(context.Context, *RegReq) (*RegResp, error) DeRegister(context.Context, *RegReq) (*RegResp, error) }
PubConnectServer is the server API for PubConnect service.
type PubConnect_DoWorkClient ¶
type PubConnect_DoWorkClient interface { Send(*WorkDetail) error Recv() (*WorkDetail, error) grpc.ClientStream }
type PubConnect_DoWorkServer ¶
type PubConnect_DoWorkServer interface { Send(*WorkDetail) error Recv() (*WorkDetail, error) grpc.ServerStream }
type RegReq ¶
type RegReq struct { PriKey string `protobuf:"bytes,1,opt,name=priKey,proto3" json:"priKey,omitempty"` AppName string `protobuf:"bytes,2,opt,name=appName,proto3" json:"appName,omitempty"` Uuid string `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid,omitempty"` //注册节点启动uuid // contains filtered or unexported fields }
func (*RegReq) Descriptor
deprecated
func (*RegReq) GetAppName ¶
func (*RegReq) ProtoMessage ¶
func (*RegReq) ProtoMessage()
func (*RegReq) ProtoReflect ¶
func (x *RegReq) ProtoReflect() protoreflect.Message
type RegResp ¶
type RegResp struct { PriKey string `protobuf:"bytes,1,opt,name=priKey,proto3" json:"priKey,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"` // contains filtered or unexported fields }
func (*RegResp) Descriptor
deprecated
func (*RegResp) ProtoMessage ¶
func (*RegResp) ProtoMessage()
func (*RegResp) ProtoReflect ¶
func (x *RegResp) ProtoReflect() protoreflect.Message
type UnimplementedPubConnectServer ¶
type UnimplementedPubConnectServer struct { }
UnimplementedPubConnectServer can be embedded to have forward compatible implementations.
func (*UnimplementedPubConnectServer) DeRegister ¶
func (*UnimplementedPubConnectServer) DoWork ¶
func (*UnimplementedPubConnectServer) DoWork(PubConnect_DoWorkServer) error
type WorkDetail ¶
type WorkDetail struct { PriKey string `protobuf:"bytes,1,opt,name=priKey,proto3" json:"priKey,omitempty"` AppName string `protobuf:"bytes,2,opt,name=appName,proto3" json:"appName,omitempty"` // 需要调度的执行器的应用名称 AppUuid string `protobuf:"bytes,3,opt,name=appUuid,proto3" json:"appUuid,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // 执行的任务名称 Uuid string `protobuf:"bytes,5,opt,name=uuid,proto3" json:"uuid,omitempty"` // 执行任务的uid Params string `protobuf:"bytes,6,opt,name=params,proto3" json:"params,omitempty"` // 执行任务的参数 RequestTime int64 `protobuf:"varint,7,opt,name=requestTime,proto3" json:"requestTime,omitempty"` // 提交任务的时间 ResponseTime int64 `protobuf:"varint,8,opt,name=responseTime,proto3" json:"responseTime,omitempty"` // 响应任务的时间 Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"` // 任务的状态 Results string `protobuf:"bytes,10,opt,name=results,proto3" json:"results,omitempty"` // 查询任务的返回 ErrCode int32 `protobuf:"varint,11,opt,name=errCode,proto3" json:"errCode,omitempty"` // 失败错误吗 // contains filtered or unexported fields }
func (*WorkDetail) Descriptor
deprecated
func (*WorkDetail) Descriptor() ([]byte, []int)
Deprecated: Use WorkDetail.ProtoReflect.Descriptor instead.
func (*WorkDetail) GetAppName ¶
func (x *WorkDetail) GetAppName() string
func (*WorkDetail) GetAppUuid ¶
func (x *WorkDetail) GetAppUuid() string
func (*WorkDetail) GetErrCode ¶
func (x *WorkDetail) GetErrCode() int32
func (*WorkDetail) GetName ¶
func (x *WorkDetail) GetName() string
func (*WorkDetail) GetParams ¶
func (x *WorkDetail) GetParams() string
func (*WorkDetail) GetPriKey ¶
func (x *WorkDetail) GetPriKey() string
func (*WorkDetail) GetRequestTime ¶
func (x *WorkDetail) GetRequestTime() int64
func (*WorkDetail) GetResponseTime ¶
func (x *WorkDetail) GetResponseTime() int64
func (*WorkDetail) GetResults ¶
func (x *WorkDetail) GetResults() string
func (*WorkDetail) GetStatus ¶
func (x *WorkDetail) GetStatus() string
func (*WorkDetail) GetUuid ¶
func (x *WorkDetail) GetUuid() string
func (*WorkDetail) ProtoMessage ¶
func (*WorkDetail) ProtoMessage()
func (*WorkDetail) ProtoReflect ¶
func (x *WorkDetail) ProtoReflect() protoreflect.Message
func (*WorkDetail) Reset ¶
func (x *WorkDetail) Reset()
func (*WorkDetail) String ¶
func (x *WorkDetail) String() string
Click to show internal directories.
Click to hide internal directories.