Documentation
¶
Index ¶
- Variables
- func RegisterAlineRPCServer(s grpc.ServiceRegistrar, srv AlineRPCServer)
- type AlineMessage
- func (*AlineMessage) Descriptor() ([]byte, []int)deprecated
- func (x *AlineMessage) GetAddress() string
- func (x *AlineMessage) GetExecReq() *ExecuteReq
- func (x *AlineMessage) GetLog() *Log
- func (x *AlineMessage) GetResult() string
- func (x *AlineMessage) GetType() int64
- func (*AlineMessage) ProtoMessage()
- func (x *AlineMessage) ProtoReflect() protoreflect.Message
- func (x *AlineMessage) Reset()
- func (x *AlineMessage) String() string
- type AlineRPCClient
- type AlineRPCServer
- type AlineRPC_AlineChatClient
- type AlineRPC_AlineChatServer
- type ExecuteReq
- func (*ExecuteReq) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteReq) GetJobDetailId() int64
- func (x *ExecuteReq) GetPipelineFile() string
- func (*ExecuteReq) ProtoMessage()
- func (x *ExecuteReq) ProtoReflect() protoreflect.Message
- func (x *ExecuteReq) Reset()
- func (x *ExecuteReq) String() string
- type ExecuteResult
- func (*ExecuteResult) Descriptor() ([]byte, []int)deprecated
- func (x *ExecuteResult) GetDuration() int64
- func (x *ExecuteResult) GetJobDetail() string
- func (x *ExecuteResult) GetStartTime() string
- func (*ExecuteResult) ProtoMessage()
- func (x *ExecuteResult) ProtoReflect() protoreflect.Message
- func (x *ExecuteResult) Reset()
- func (x *ExecuteResult) String() string
- type Log
- type UnimplementedAlineRPCServer
- type UnsafeAlineRPCServer
Constants ¶
This section is empty.
Variables ¶
var AlineRPC_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.AlineRPC", HandlerType: (*AlineRPCServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "AlineChat", Handler: _AlineRPC_AlineChat_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "pkg/grpc/api/aline.proto", }
AlineRPC_ServiceDesc is the grpc.ServiceDesc for AlineRPC service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_grpc_api_aline_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAlineRPCServer ¶
func RegisterAlineRPCServer(s grpc.ServiceRegistrar, srv AlineRPCServer)
Types ¶
type AlineMessage ¶
type AlineMessage struct {
// 1: register 2: offline 3: heartbeat 4: execute 5: cancel 6: executeResultNotify 7: getLog
Type int64 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
// registry
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
ExecReq *ExecuteReq `protobuf:"bytes,3,opt,name=execReq,proto3" json:"execReq,omitempty"`
// execute result
Result string `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
// log
Log *Log `protobuf:"bytes,5,opt,name=log,proto3" json:"log,omitempty"`
// contains filtered or unexported fields
}
func (*AlineMessage) Descriptor
deprecated
func (*AlineMessage) Descriptor() ([]byte, []int)
Deprecated: Use AlineMessage.ProtoReflect.Descriptor instead.
func (*AlineMessage) GetAddress ¶
func (x *AlineMessage) GetAddress() string
func (*AlineMessage) GetExecReq ¶
func (x *AlineMessage) GetExecReq() *ExecuteReq
func (*AlineMessage) GetLog ¶
func (x *AlineMessage) GetLog() *Log
func (*AlineMessage) GetResult ¶
func (x *AlineMessage) GetResult() string
func (*AlineMessage) GetType ¶
func (x *AlineMessage) GetType() int64
func (*AlineMessage) ProtoMessage ¶
func (*AlineMessage) ProtoMessage()
func (*AlineMessage) ProtoReflect ¶
func (x *AlineMessage) ProtoReflect() protoreflect.Message
func (*AlineMessage) Reset ¶
func (x *AlineMessage) Reset()
func (*AlineMessage) String ¶
func (x *AlineMessage) String() string
type AlineRPCClient ¶
type AlineRPCClient interface {
AlineChat(ctx context.Context, opts ...grpc.CallOption) (AlineRPC_AlineChatClient, error)
}
AlineRPCClient is the client API for AlineRPC service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAlineRPCClient ¶
func NewAlineRPCClient(cc grpc.ClientConnInterface) AlineRPCClient
type AlineRPCServer ¶
type AlineRPCServer interface {
AlineChat(AlineRPC_AlineChatServer) error
// contains filtered or unexported methods
}
AlineRPCServer is the server API for AlineRPC service. All implementations must embed UnimplementedAlineRPCServer for forward compatibility
type AlineRPC_AlineChatClient ¶
type AlineRPC_AlineChatClient interface {
Send(*AlineMessage) error
Recv() (*AlineMessage, error)
grpc.ClientStream
}
type AlineRPC_AlineChatServer ¶
type AlineRPC_AlineChatServer interface {
Send(*AlineMessage) error
Recv() (*AlineMessage, error)
grpc.ServerStream
}
type ExecuteReq ¶
type ExecuteReq struct {
// pipeline file
PipelineFile string `protobuf:"bytes,1,opt,name=pipelineFile,proto3" json:"pipelineFile,omitempty"`
// job exec id
JobDetailId int64 `protobuf:"varint,2,opt,name=jobDetailId,proto3" json:"jobDetailId,omitempty"`
// contains filtered or unexported fields
}
func (*ExecuteReq) Descriptor
deprecated
func (*ExecuteReq) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteReq.ProtoReflect.Descriptor instead.
func (*ExecuteReq) GetJobDetailId ¶
func (x *ExecuteReq) GetJobDetailId() int64
func (*ExecuteReq) GetPipelineFile ¶
func (x *ExecuteReq) GetPipelineFile() string
func (*ExecuteReq) ProtoMessage ¶
func (*ExecuteReq) ProtoMessage()
func (*ExecuteReq) ProtoReflect ¶
func (x *ExecuteReq) ProtoReflect() protoreflect.Message
func (*ExecuteReq) Reset ¶
func (x *ExecuteReq) Reset()
func (*ExecuteReq) String ¶
func (x *ExecuteReq) String() string
type ExecuteResult ¶
type ExecuteResult struct {
JobDetail string `protobuf:"bytes,1,opt,name=jobDetail,proto3" json:"jobDetail,omitempty"`
StartTime string `protobuf:"bytes,2,opt,name=startTime,proto3" json:"startTime,omitempty"`
Duration int64 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"`
// contains filtered or unexported fields
}
func (*ExecuteResult) Descriptor
deprecated
func (*ExecuteResult) Descriptor() ([]byte, []int)
Deprecated: Use ExecuteResult.ProtoReflect.Descriptor instead.
func (*ExecuteResult) GetDuration ¶
func (x *ExecuteResult) GetDuration() int64
func (*ExecuteResult) GetJobDetail ¶
func (x *ExecuteResult) GetJobDetail() string
func (*ExecuteResult) GetStartTime ¶
func (x *ExecuteResult) GetStartTime() string
func (*ExecuteResult) ProtoMessage ¶
func (*ExecuteResult) ProtoMessage()
func (*ExecuteResult) ProtoReflect ¶
func (x *ExecuteResult) ProtoReflect() protoreflect.Message
func (*ExecuteResult) Reset ¶
func (x *ExecuteResult) Reset()
func (*ExecuteResult) String ¶
func (x *ExecuteResult) String() string
type Log ¶
type Log struct {
Stage string `protobuf:"bytes,1,opt,name=stage,proto3" json:"stage,omitempty"`
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
More bool `protobuf:"varint,3,opt,name=more,proto3" json:"more,omitempty"`
// contains filtered or unexported fields
}
func (*Log) Descriptor
deprecated
func (*Log) GetContent ¶
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶
func (x *Log) ProtoReflect() protoreflect.Message
type UnimplementedAlineRPCServer ¶
type UnimplementedAlineRPCServer struct {
}
UnimplementedAlineRPCServer must be embedded to have forward compatible implementations.
func (UnimplementedAlineRPCServer) AlineChat ¶
func (UnimplementedAlineRPCServer) AlineChat(AlineRPC_AlineChatServer) error
type UnsafeAlineRPCServer ¶
type UnsafeAlineRPCServer interface {
// contains filtered or unexported methods
}
UnsafeAlineRPCServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AlineRPCServer will result in compilation errors.