Documentation ¶
Index ¶
- Variables
- func RegisterToolsServerServer(s grpc.ServiceRegistrar, srv ToolsServerServer)
- type InstallPackageReq
- type InstallPackageRes
- func (*InstallPackageRes) Descriptor() ([]byte, []int)deprecated
- func (x *InstallPackageRes) GetName() string
- func (x *InstallPackageRes) GetOperate() Operate
- func (x *InstallPackageRes) GetVersion() string
- func (*InstallPackageRes) ProtoMessage()
- func (x *InstallPackageRes) ProtoReflect() protoreflect.Message
- func (x *InstallPackageRes) Reset()
- func (x *InstallPackageRes) String() string
- type Operate
- type SetTaskReq
- type SetTaskRes
- func (*SetTaskRes) Descriptor() ([]byte, []int)deprecated
- func (x *SetTaskRes) GetEntryID() int64
- func (x *SetTaskRes) GetID() uint64
- func (x *SetTaskRes) GetTimerStatus() TimerStatusOperate
- func (*SetTaskRes) ProtoMessage()
- func (x *SetTaskRes) ProtoReflect() protoreflect.Message
- func (x *SetTaskRes) Reset()
- func (x *SetTaskRes) String() string
- type TimerStatusOperate
- func (TimerStatusOperate) Descriptor() protoreflect.EnumDescriptor
- func (x TimerStatusOperate) Enum() *TimerStatusOperate
- func (TimerStatusOperate) EnumDescriptor() ([]byte, []int)deprecated
- func (x TimerStatusOperate) Number() protoreflect.EnumNumber
- func (x TimerStatusOperate) String() string
- func (TimerStatusOperate) Type() protoreflect.EnumType
- type ToolsServerClient
- type ToolsServerServer
- type ToolsServer_InstallPackageStreamingMessageClient
- type ToolsServer_InstallPackageStreamingMessageServer
- type ToolsServer_SetTaskStreamingMessageClient
- type ToolsServer_SetTaskStreamingMessageServer
- type UnimplementedToolsServerServer
- type UnsafeToolsServerServer
Constants ¶
This section is empty.
Variables ¶
var ( Operate_name = map[int32]string{ 0: "INSTALL", 1: "REMOVE", 2: "UPDATE", } Operate_value = map[string]int32{ "INSTALL": 0, "REMOVE": 1, "UPDATE": 2, } )
Enum value maps for Operate.
var ( TimerStatusOperate_name = map[int32]string{ 0: "ADD", 1: "DELETE", 2: "RESET", } TimerStatusOperate_value = map[string]int32{ "ADD": 0, "DELETE": 1, "RESET": 2, } )
Enum value maps for TimerStatusOperate.
var File_install_proto protoreflect.FileDescriptor
var ToolsServer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tools.ToolsServer", HandlerType: (*ToolsServerServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "InstallPackageStreamingMessage", Handler: _ToolsServer_InstallPackageStreamingMessage_Handler, ServerStreams: true, }, { StreamName: "SetTaskStreamingMessage", Handler: _ToolsServer_SetTaskStreamingMessage_Handler, ServerStreams: true, }, }, Metadata: "install.proto", }
ToolsServer_ServiceDesc is the grpc.ServiceDesc for ToolsServer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterToolsServerServer ¶
func RegisterToolsServerServer(s grpc.ServiceRegistrar, srv ToolsServerServer)
Types ¶
type InstallPackageReq ¶
type InstallPackageReq struct {
// contains filtered or unexported fields
}
func (*InstallPackageReq) Descriptor
deprecated
func (*InstallPackageReq) Descriptor() ([]byte, []int)
Deprecated: Use InstallPackageReq.ProtoReflect.Descriptor instead.
func (*InstallPackageReq) ProtoMessage ¶
func (*InstallPackageReq) ProtoMessage()
func (*InstallPackageReq) ProtoReflect ¶
func (x *InstallPackageReq) ProtoReflect() protoreflect.Message
func (*InstallPackageReq) Reset ¶
func (x *InstallPackageReq) Reset()
func (*InstallPackageReq) String ¶
func (x *InstallPackageReq) String() string
type InstallPackageRes ¶
type InstallPackageRes struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Operate Operate `protobuf:"varint,3,opt,name=operate,proto3,enum=tools.Operate" json:"operate,omitempty"` // contains filtered or unexported fields }
func (*InstallPackageRes) Descriptor
deprecated
func (*InstallPackageRes) Descriptor() ([]byte, []int)
Deprecated: Use InstallPackageRes.ProtoReflect.Descriptor instead.
func (*InstallPackageRes) GetName ¶
func (x *InstallPackageRes) GetName() string
func (*InstallPackageRes) GetOperate ¶
func (x *InstallPackageRes) GetOperate() Operate
func (*InstallPackageRes) GetVersion ¶
func (x *InstallPackageRes) GetVersion() string
func (*InstallPackageRes) ProtoMessage ¶
func (*InstallPackageRes) ProtoMessage()
func (*InstallPackageRes) ProtoReflect ¶
func (x *InstallPackageRes) ProtoReflect() protoreflect.Message
func (*InstallPackageRes) Reset ¶
func (x *InstallPackageRes) Reset()
func (*InstallPackageRes) String ¶
func (x *InstallPackageRes) String() string
type Operate ¶
type Operate int32
func (Operate) Descriptor ¶
func (Operate) Descriptor() protoreflect.EnumDescriptor
func (Operate) EnumDescriptor
deprecated
func (Operate) Number ¶
func (x Operate) Number() protoreflect.EnumNumber
func (Operate) Type ¶
func (Operate) Type() protoreflect.EnumType
type SetTaskReq ¶
type SetTaskReq struct {
// contains filtered or unexported fields
}
func (*SetTaskReq) Descriptor
deprecated
func (*SetTaskReq) Descriptor() ([]byte, []int)
Deprecated: Use SetTaskReq.ProtoReflect.Descriptor instead.
func (*SetTaskReq) ProtoMessage ¶
func (*SetTaskReq) ProtoMessage()
func (*SetTaskReq) ProtoReflect ¶
func (x *SetTaskReq) ProtoReflect() protoreflect.Message
func (*SetTaskReq) Reset ¶
func (x *SetTaskReq) Reset()
func (*SetTaskReq) String ¶
func (x *SetTaskReq) String() string
type SetTaskRes ¶
type SetTaskRes struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` EntryID int64 `protobuf:"varint,2,opt,name=EntryID,proto3" json:"EntryID,omitempty"` TimerStatus TimerStatusOperate `protobuf:"varint,3,opt,name=TimerStatus,proto3,enum=tools.TimerStatusOperate" json:"TimerStatus,omitempty"` // contains filtered or unexported fields }
func (*SetTaskRes) Descriptor
deprecated
func (*SetTaskRes) Descriptor() ([]byte, []int)
Deprecated: Use SetTaskRes.ProtoReflect.Descriptor instead.
func (*SetTaskRes) GetEntryID ¶
func (x *SetTaskRes) GetEntryID() int64
func (*SetTaskRes) GetID ¶
func (x *SetTaskRes) GetID() uint64
func (*SetTaskRes) GetTimerStatus ¶
func (x *SetTaskRes) GetTimerStatus() TimerStatusOperate
func (*SetTaskRes) ProtoMessage ¶
func (*SetTaskRes) ProtoMessage()
func (*SetTaskRes) ProtoReflect ¶
func (x *SetTaskRes) ProtoReflect() protoreflect.Message
func (*SetTaskRes) Reset ¶
func (x *SetTaskRes) Reset()
func (*SetTaskRes) String ¶
func (x *SetTaskRes) String() string
type TimerStatusOperate ¶
type TimerStatusOperate int32
const ( TimerStatusOperate_ADD TimerStatusOperate = 0 TimerStatusOperate_DELETE TimerStatusOperate = 1 TimerStatusOperate_RESET TimerStatusOperate = 2 )
func (TimerStatusOperate) Descriptor ¶
func (TimerStatusOperate) Descriptor() protoreflect.EnumDescriptor
func (TimerStatusOperate) Enum ¶
func (x TimerStatusOperate) Enum() *TimerStatusOperate
func (TimerStatusOperate) EnumDescriptor
deprecated
func (TimerStatusOperate) EnumDescriptor() ([]byte, []int)
Deprecated: Use TimerStatusOperate.Descriptor instead.
func (TimerStatusOperate) Number ¶
func (x TimerStatusOperate) Number() protoreflect.EnumNumber
func (TimerStatusOperate) String ¶
func (x TimerStatusOperate) String() string
func (TimerStatusOperate) Type ¶
func (TimerStatusOperate) Type() protoreflect.EnumType
type ToolsServerClient ¶
type ToolsServerClient interface { InstallPackageStreamingMessage(ctx context.Context, in *InstallPackageReq, opts ...grpc.CallOption) (ToolsServer_InstallPackageStreamingMessageClient, error) SetTaskStreamingMessage(ctx context.Context, in *SetTaskReq, opts ...grpc.CallOption) (ToolsServer_SetTaskStreamingMessageClient, error) }
ToolsServerClient is the client API for ToolsServer 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 NewToolsServerClient ¶
func NewToolsServerClient(cc grpc.ClientConnInterface) ToolsServerClient
type ToolsServerServer ¶
type ToolsServerServer interface { InstallPackageStreamingMessage(*InstallPackageReq, ToolsServer_InstallPackageStreamingMessageServer) error SetTaskStreamingMessage(*SetTaskReq, ToolsServer_SetTaskStreamingMessageServer) error // contains filtered or unexported methods }
ToolsServerServer is the server API for ToolsServer service. All implementations must embed UnimplementedToolsServerServer for forward compatibility
type ToolsServer_InstallPackageStreamingMessageClient ¶
type ToolsServer_InstallPackageStreamingMessageClient interface { Recv() (*InstallPackageRes, error) grpc.ClientStream }
type ToolsServer_InstallPackageStreamingMessageServer ¶
type ToolsServer_InstallPackageStreamingMessageServer interface { Send(*InstallPackageRes) error grpc.ServerStream }
type ToolsServer_SetTaskStreamingMessageClient ¶
type ToolsServer_SetTaskStreamingMessageClient interface { Recv() (*SetTaskRes, error) grpc.ClientStream }
type ToolsServer_SetTaskStreamingMessageServer ¶
type ToolsServer_SetTaskStreamingMessageServer interface { Send(*SetTaskRes) error grpc.ServerStream }
type UnimplementedToolsServerServer ¶
type UnimplementedToolsServerServer struct { }
UnimplementedToolsServerServer must be embedded to have forward compatible implementations.
func (UnimplementedToolsServerServer) InstallPackageStreamingMessage ¶
func (UnimplementedToolsServerServer) InstallPackageStreamingMessage(*InstallPackageReq, ToolsServer_InstallPackageStreamingMessageServer) error
func (UnimplementedToolsServerServer) SetTaskStreamingMessage ¶
func (UnimplementedToolsServerServer) SetTaskStreamingMessage(*SetTaskReq, ToolsServer_SetTaskStreamingMessageServer) error
type UnsafeToolsServerServer ¶
type UnsafeToolsServerServer interface {
// contains filtered or unexported methods
}
UnsafeToolsServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ToolsServerServer will result in compilation errors.