tools

package
v0.0.0-...-b652da8 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
var File_install_proto protoreflect.FileDescriptor
View Source
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
const (
	Operate_INSTALL Operate = 0
	Operate_REMOVE  Operate = 1
	Operate_UPDATE  Operate = 2
)

func (Operate) Descriptor

func (Operate) Descriptor() protoreflect.EnumDescriptor

func (Operate) Enum

func (x Operate) Enum() *Operate

func (Operate) EnumDescriptor deprecated

func (Operate) EnumDescriptor() ([]byte, []int)

Deprecated: Use Operate.Descriptor instead.

func (Operate) Number

func (x Operate) Number() protoreflect.EnumNumber

func (Operate) String

func (x Operate) String() string

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) Enum

func (TimerStatusOperate) EnumDescriptor deprecated

func (TimerStatusOperate) EnumDescriptor() ([]byte, []int)

Deprecated: Use TimerStatusOperate.Descriptor instead.

func (TimerStatusOperate) Number

func (TimerStatusOperate) String

func (x TimerStatusOperate) String() string

func (TimerStatusOperate) Type

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.

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) SetTaskStreamingMessage

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.

Jump to

Keyboard shortcuts

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