v1

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Tool_GetSystemLog_FullMethodName    = "/api.admin.tool.v1.Tool/GetSystemLog"
	Tool_RestartSystem_FullMethodName   = "/api.admin.tool.v1.Tool/RestartSystem"
	Tool_GetVersion_FullMethodName      = "/api.admin.tool.v1.Tool/GetVersion"
	Tool_QueryIPLocation_FullMethodName = "/api.admin.tool.v1.Tool/QueryIPLocation"
)
View Source
const OperationToolGetSystemLog = "/api.admin.tool.v1.Tool/GetSystemLog"
View Source
const OperationToolGetVersion = "/api.admin.tool.v1.Tool/GetVersion"
View Source
const OperationToolQueryIPLocation = "/api.admin.tool.v1.Tool/QueryIPLocation"
View Source
const OperationToolRestartSystem = "/api.admin.tool.v1.Tool/RestartSystem"

Variables

View Source
var File_admin_tool_v1_tool_proto protoreflect.FileDescriptor
View Source
var Tool_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.admin.tool.v1.Tool",
	HandlerType: (*ToolServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSystemLog",
			Handler:    _Tool_GetSystemLog_Handler,
		},
		{
			MethodName: "RestartSystem",
			Handler:    _Tool_RestartSystem_Handler,
		},
		{
			MethodName: "GetVersion",
			Handler:    _Tool_GetVersion_Handler,
		},
		{
			MethodName: "QueryIPLocation",
			Handler:    _Tool_QueryIPLocation_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "admin/tool/v1/tool.proto",
}

Tool_ServiceDesc is the grpc.ServiceDesc for Tool service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterToolHTTPServer

func RegisterToolHTTPServer(s *http.Server, srv ToolHTTPServer)

func RegisterToolServer

func RegisterToolServer(s grpc.ServiceRegistrar, srv ToolServer)

Types

type GetSystemLogReply

type GetSystemLogReply struct {
	Code    int32        `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string       `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *LogResponse `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

GetSystemLogReply 获取系统日志响应

func (*GetSystemLogReply) Descriptor deprecated

func (*GetSystemLogReply) Descriptor() ([]byte, []int)

Deprecated: Use GetSystemLogReply.ProtoReflect.Descriptor instead.

func (*GetSystemLogReply) GetCode

func (x *GetSystemLogReply) GetCode() int32

func (*GetSystemLogReply) GetData

func (x *GetSystemLogReply) GetData() *LogResponse

func (*GetSystemLogReply) GetMessage

func (x *GetSystemLogReply) GetMessage() string

func (*GetSystemLogReply) ProtoMessage

func (*GetSystemLogReply) ProtoMessage()

func (*GetSystemLogReply) ProtoReflect

func (x *GetSystemLogReply) ProtoReflect() protoreflect.Message

func (*GetSystemLogReply) Reset

func (x *GetSystemLogReply) Reset()

func (*GetSystemLogReply) String

func (x *GetSystemLogReply) String() string

func (*GetSystemLogReply) Validate

func (m *GetSystemLogReply) Validate() error

Validate checks the field values on GetSystemLogReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetSystemLogReply) ValidateAll

func (m *GetSystemLogReply) ValidateAll() error

ValidateAll checks the field values on GetSystemLogReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetSystemLogReplyMultiError, or nil if none found.

type GetSystemLogReplyMultiError

type GetSystemLogReplyMultiError []error

GetSystemLogReplyMultiError is an error wrapping multiple validation errors returned by GetSystemLogReply.ValidateAll() if the designated constraints aren't met.

func (GetSystemLogReplyMultiError) AllErrors

func (m GetSystemLogReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetSystemLogReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetSystemLogReplyValidationError

type GetSystemLogReplyValidationError struct {
	// contains filtered or unexported fields
}

GetSystemLogReplyValidationError is the validation error returned by GetSystemLogReply.Validate if the designated constraints aren't met.

func (GetSystemLogReplyValidationError) Cause

Cause function returns cause value.

func (GetSystemLogReplyValidationError) Error

Error satisfies the builtin error interface

func (GetSystemLogReplyValidationError) ErrorName

ErrorName returns error name.

func (GetSystemLogReplyValidationError) Field

Field function returns field value.

func (GetSystemLogReplyValidationError) Key

Key function returns key value.

func (GetSystemLogReplyValidationError) Reason

Reason function returns reason value.

type GetSystemLogRequest

type GetSystemLogRequest struct {
	// contains filtered or unexported fields
}

GetSystemLogRequest 获取系统日志请求

func (*GetSystemLogRequest) Descriptor deprecated

func (*GetSystemLogRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSystemLogRequest.ProtoReflect.Descriptor instead.

func (*GetSystemLogRequest) ProtoMessage

func (*GetSystemLogRequest) ProtoMessage()

func (*GetSystemLogRequest) ProtoReflect

func (x *GetSystemLogRequest) ProtoReflect() protoreflect.Message

func (*GetSystemLogRequest) Reset

func (x *GetSystemLogRequest) Reset()

func (*GetSystemLogRequest) String

func (x *GetSystemLogRequest) String() string

func (*GetSystemLogRequest) Validate

func (m *GetSystemLogRequest) Validate() error

Validate checks the field values on GetSystemLogRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetSystemLogRequest) ValidateAll

func (m *GetSystemLogRequest) ValidateAll() error

ValidateAll checks the field values on GetSystemLogRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetSystemLogRequestMultiError, or nil if none found.

type GetSystemLogRequestMultiError

type GetSystemLogRequestMultiError []error

GetSystemLogRequestMultiError is an error wrapping multiple validation errors returned by GetSystemLogRequest.ValidateAll() if the designated constraints aren't met.

func (GetSystemLogRequestMultiError) AllErrors

func (m GetSystemLogRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetSystemLogRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetSystemLogRequestValidationError

type GetSystemLogRequestValidationError struct {
	// contains filtered or unexported fields
}

GetSystemLogRequestValidationError is the validation error returned by GetSystemLogRequest.Validate if the designated constraints aren't met.

func (GetSystemLogRequestValidationError) Cause

Cause function returns cause value.

func (GetSystemLogRequestValidationError) Error

Error satisfies the builtin error interface

func (GetSystemLogRequestValidationError) ErrorName

ErrorName returns error name.

func (GetSystemLogRequestValidationError) Field

Field function returns field value.

func (GetSystemLogRequestValidationError) Key

Key function returns key value.

func (GetSystemLogRequestValidationError) Reason

Reason function returns reason value.

type GetVersionReply

type GetVersionReply struct {
	Code    int32            `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string           `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *VersionResponse `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

GetVersionReply 获取版本信息响应

func (*GetVersionReply) Descriptor deprecated

func (*GetVersionReply) Descriptor() ([]byte, []int)

Deprecated: Use GetVersionReply.ProtoReflect.Descriptor instead.

func (*GetVersionReply) GetCode

func (x *GetVersionReply) GetCode() int32

func (*GetVersionReply) GetData

func (x *GetVersionReply) GetData() *VersionResponse

func (*GetVersionReply) GetMessage

func (x *GetVersionReply) GetMessage() string

func (*GetVersionReply) ProtoMessage

func (*GetVersionReply) ProtoMessage()

func (*GetVersionReply) ProtoReflect

func (x *GetVersionReply) ProtoReflect() protoreflect.Message

func (*GetVersionReply) Reset

func (x *GetVersionReply) Reset()

func (*GetVersionReply) String

func (x *GetVersionReply) String() string

func (*GetVersionReply) Validate

func (m *GetVersionReply) Validate() error

Validate checks the field values on GetVersionReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetVersionReply) ValidateAll

func (m *GetVersionReply) ValidateAll() error

ValidateAll checks the field values on GetVersionReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetVersionReplyMultiError, or nil if none found.

type GetVersionReplyMultiError

type GetVersionReplyMultiError []error

GetVersionReplyMultiError is an error wrapping multiple validation errors returned by GetVersionReply.ValidateAll() if the designated constraints aren't met.

func (GetVersionReplyMultiError) AllErrors

func (m GetVersionReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetVersionReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetVersionReplyValidationError

type GetVersionReplyValidationError struct {
	// contains filtered or unexported fields
}

GetVersionReplyValidationError is the validation error returned by GetVersionReply.Validate if the designated constraints aren't met.

func (GetVersionReplyValidationError) Cause

Cause function returns cause value.

func (GetVersionReplyValidationError) Error

Error satisfies the builtin error interface

func (GetVersionReplyValidationError) ErrorName

func (e GetVersionReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetVersionReplyValidationError) Field

Field function returns field value.

func (GetVersionReplyValidationError) Key

Key function returns key value.

func (GetVersionReplyValidationError) Reason

Reason function returns reason value.

type GetVersionRequest

type GetVersionRequest struct {
	// contains filtered or unexported fields
}

GetVersionRequest 获取版本信息请求

func (*GetVersionRequest) Descriptor deprecated

func (*GetVersionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetVersionRequest.ProtoReflect.Descriptor instead.

func (*GetVersionRequest) ProtoMessage

func (*GetVersionRequest) ProtoMessage()

func (*GetVersionRequest) ProtoReflect

func (x *GetVersionRequest) ProtoReflect() protoreflect.Message

func (*GetVersionRequest) Reset

func (x *GetVersionRequest) Reset()

func (*GetVersionRequest) String

func (x *GetVersionRequest) String() string

func (*GetVersionRequest) Validate

func (m *GetVersionRequest) Validate() error

Validate checks the field values on GetVersionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetVersionRequest) ValidateAll

func (m *GetVersionRequest) ValidateAll() error

ValidateAll checks the field values on GetVersionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetVersionRequestMultiError, or nil if none found.

type GetVersionRequestMultiError

type GetVersionRequestMultiError []error

GetVersionRequestMultiError is an error wrapping multiple validation errors returned by GetVersionRequest.ValidateAll() if the designated constraints aren't met.

func (GetVersionRequestMultiError) AllErrors

func (m GetVersionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetVersionRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetVersionRequestValidationError

type GetVersionRequestValidationError struct {
	// contains filtered or unexported fields
}

GetVersionRequestValidationError is the validation error returned by GetVersionRequest.Validate if the designated constraints aren't met.

func (GetVersionRequestValidationError) Cause

Cause function returns cause value.

func (GetVersionRequestValidationError) Error

Error satisfies the builtin error interface

func (GetVersionRequestValidationError) ErrorName

ErrorName returns error name.

func (GetVersionRequestValidationError) Field

Field function returns field value.

func (GetVersionRequestValidationError) Key

Key function returns key value.

func (GetVersionRequestValidationError) Reason

Reason function returns reason value.

type LogResponse

type LogResponse struct {
	List []*structpb.Struct `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*LogResponse) Descriptor deprecated

func (*LogResponse) Descriptor() ([]byte, []int)

Deprecated: Use LogResponse.ProtoReflect.Descriptor instead.

func (*LogResponse) GetList

func (x *LogResponse) GetList() []*structpb.Struct

func (*LogResponse) ProtoMessage

func (*LogResponse) ProtoMessage()

func (*LogResponse) ProtoReflect

func (x *LogResponse) ProtoReflect() protoreflect.Message

func (*LogResponse) Reset

func (x *LogResponse) Reset()

func (*LogResponse) String

func (x *LogResponse) String() string

func (*LogResponse) Validate

func (m *LogResponse) Validate() error

Validate checks the field values on LogResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LogResponse) ValidateAll

func (m *LogResponse) ValidateAll() error

ValidateAll checks the field values on LogResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LogResponseMultiError, or nil if none found.

type LogResponseMultiError

type LogResponseMultiError []error

LogResponseMultiError is an error wrapping multiple validation errors returned by LogResponse.ValidateAll() if the designated constraints aren't met.

func (LogResponseMultiError) AllErrors

func (m LogResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LogResponseMultiError) Error

func (m LogResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LogResponseValidationError

type LogResponseValidationError struct {
	// contains filtered or unexported fields
}

LogResponseValidationError is the validation error returned by LogResponse.Validate if the designated constraints aren't met.

func (LogResponseValidationError) Cause

Cause function returns cause value.

func (LogResponseValidationError) Error

Error satisfies the builtin error interface

func (LogResponseValidationError) ErrorName

func (e LogResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LogResponseValidationError) Field

Field function returns field value.

func (LogResponseValidationError) Key

Key function returns key value.

func (LogResponseValidationError) Reason

Reason function returns reason value.

type QueryIPLocationReply

type QueryIPLocationReply struct {
	Code    int32                    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string                   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *QueryIPLocationResponse `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryIPLocationReply) Descriptor deprecated

func (*QueryIPLocationReply) Descriptor() ([]byte, []int)

Deprecated: Use QueryIPLocationReply.ProtoReflect.Descriptor instead.

func (*QueryIPLocationReply) GetCode

func (x *QueryIPLocationReply) GetCode() int32

func (*QueryIPLocationReply) GetData

func (*QueryIPLocationReply) GetMessage

func (x *QueryIPLocationReply) GetMessage() string

func (*QueryIPLocationReply) ProtoMessage

func (*QueryIPLocationReply) ProtoMessage()

func (*QueryIPLocationReply) ProtoReflect

func (x *QueryIPLocationReply) ProtoReflect() protoreflect.Message

func (*QueryIPLocationReply) Reset

func (x *QueryIPLocationReply) Reset()

func (*QueryIPLocationReply) String

func (x *QueryIPLocationReply) String() string

func (*QueryIPLocationReply) Validate

func (m *QueryIPLocationReply) Validate() error

Validate checks the field values on QueryIPLocationReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*QueryIPLocationReply) ValidateAll

func (m *QueryIPLocationReply) ValidateAll() error

ValidateAll checks the field values on QueryIPLocationReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in QueryIPLocationReplyMultiError, or nil if none found.

type QueryIPLocationReplyMultiError

type QueryIPLocationReplyMultiError []error

QueryIPLocationReplyMultiError is an error wrapping multiple validation errors returned by QueryIPLocationReply.ValidateAll() if the designated constraints aren't met.

func (QueryIPLocationReplyMultiError) AllErrors

func (m QueryIPLocationReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (QueryIPLocationReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type QueryIPLocationReplyValidationError

type QueryIPLocationReplyValidationError struct {
	// contains filtered or unexported fields
}

QueryIPLocationReplyValidationError is the validation error returned by QueryIPLocationReply.Validate if the designated constraints aren't met.

func (QueryIPLocationReplyValidationError) Cause

Cause function returns cause value.

func (QueryIPLocationReplyValidationError) Error

Error satisfies the builtin error interface

func (QueryIPLocationReplyValidationError) ErrorName

ErrorName returns error name.

func (QueryIPLocationReplyValidationError) Field

Field function returns field value.

func (QueryIPLocationReplyValidationError) Key

Key function returns key value.

func (QueryIPLocationReplyValidationError) Reason

Reason function returns reason value.

type QueryIPLocationRequest

type QueryIPLocationRequest struct {
	Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

QueryIPLocationRequest 查询IP地理位置请求

func (*QueryIPLocationRequest) Descriptor deprecated

func (*QueryIPLocationRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryIPLocationRequest.ProtoReflect.Descriptor instead.

func (*QueryIPLocationRequest) GetIp

func (x *QueryIPLocationRequest) GetIp() string

func (*QueryIPLocationRequest) ProtoMessage

func (*QueryIPLocationRequest) ProtoMessage()

func (*QueryIPLocationRequest) ProtoReflect

func (x *QueryIPLocationRequest) ProtoReflect() protoreflect.Message

func (*QueryIPLocationRequest) Reset

func (x *QueryIPLocationRequest) Reset()

func (*QueryIPLocationRequest) String

func (x *QueryIPLocationRequest) String() string

func (*QueryIPLocationRequest) Validate

func (m *QueryIPLocationRequest) Validate() error

Validate checks the field values on QueryIPLocationRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*QueryIPLocationRequest) ValidateAll

func (m *QueryIPLocationRequest) ValidateAll() error

ValidateAll checks the field values on QueryIPLocationRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in QueryIPLocationRequestMultiError, or nil if none found.

type QueryIPLocationRequestMultiError

type QueryIPLocationRequestMultiError []error

QueryIPLocationRequestMultiError is an error wrapping multiple validation errors returned by QueryIPLocationRequest.ValidateAll() if the designated constraints aren't met.

func (QueryIPLocationRequestMultiError) AllErrors

func (m QueryIPLocationRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (QueryIPLocationRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type QueryIPLocationRequestValidationError

type QueryIPLocationRequestValidationError struct {
	// contains filtered or unexported fields
}

QueryIPLocationRequestValidationError is the validation error returned by QueryIPLocationRequest.Validate if the designated constraints aren't met.

func (QueryIPLocationRequestValidationError) Cause

Cause function returns cause value.

func (QueryIPLocationRequestValidationError) Error

Error satisfies the builtin error interface

func (QueryIPLocationRequestValidationError) ErrorName

ErrorName returns error name.

func (QueryIPLocationRequestValidationError) Field

Field function returns field value.

func (QueryIPLocationRequestValidationError) Key

Key function returns key value.

func (QueryIPLocationRequestValidationError) Reason

Reason function returns reason value.

type QueryIPLocationResponse

type QueryIPLocationResponse struct {
	Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"`
	Region  string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"`
	City    string `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryIPLocationResponse) Descriptor deprecated

func (*QueryIPLocationResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryIPLocationResponse.ProtoReflect.Descriptor instead.

func (*QueryIPLocationResponse) GetCity

func (x *QueryIPLocationResponse) GetCity() string

func (*QueryIPLocationResponse) GetCountry

func (x *QueryIPLocationResponse) GetCountry() string

func (*QueryIPLocationResponse) GetRegion

func (x *QueryIPLocationResponse) GetRegion() string

func (*QueryIPLocationResponse) ProtoMessage

func (*QueryIPLocationResponse) ProtoMessage()

func (*QueryIPLocationResponse) ProtoReflect

func (x *QueryIPLocationResponse) ProtoReflect() protoreflect.Message

func (*QueryIPLocationResponse) Reset

func (x *QueryIPLocationResponse) Reset()

func (*QueryIPLocationResponse) String

func (x *QueryIPLocationResponse) String() string

func (*QueryIPLocationResponse) Validate

func (m *QueryIPLocationResponse) Validate() error

Validate checks the field values on QueryIPLocationResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*QueryIPLocationResponse) ValidateAll

func (m *QueryIPLocationResponse) ValidateAll() error

ValidateAll checks the field values on QueryIPLocationResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in QueryIPLocationResponseMultiError, or nil if none found.

type QueryIPLocationResponseMultiError

type QueryIPLocationResponseMultiError []error

QueryIPLocationResponseMultiError is an error wrapping multiple validation errors returned by QueryIPLocationResponse.ValidateAll() if the designated constraints aren't met.

func (QueryIPLocationResponseMultiError) AllErrors

func (m QueryIPLocationResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (QueryIPLocationResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type QueryIPLocationResponseValidationError

type QueryIPLocationResponseValidationError struct {
	// contains filtered or unexported fields
}

QueryIPLocationResponseValidationError is the validation error returned by QueryIPLocationResponse.Validate if the designated constraints aren't met.

func (QueryIPLocationResponseValidationError) Cause

Cause function returns cause value.

func (QueryIPLocationResponseValidationError) Error

Error satisfies the builtin error interface

func (QueryIPLocationResponseValidationError) ErrorName

ErrorName returns error name.

func (QueryIPLocationResponseValidationError) Field

Field function returns field value.

func (QueryIPLocationResponseValidationError) Key

Key function returns key value.

func (QueryIPLocationResponseValidationError) Reason

Reason function returns reason value.

type RestartSystemReply

type RestartSystemReply struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

RestartSystemReply 重启系统响应

func (*RestartSystemReply) Descriptor deprecated

func (*RestartSystemReply) Descriptor() ([]byte, []int)

Deprecated: Use RestartSystemReply.ProtoReflect.Descriptor instead.

func (*RestartSystemReply) GetCode

func (x *RestartSystemReply) GetCode() int32

func (*RestartSystemReply) GetMessage

func (x *RestartSystemReply) GetMessage() string

func (*RestartSystemReply) ProtoMessage

func (*RestartSystemReply) ProtoMessage()

func (*RestartSystemReply) ProtoReflect

func (x *RestartSystemReply) ProtoReflect() protoreflect.Message

func (*RestartSystemReply) Reset

func (x *RestartSystemReply) Reset()

func (*RestartSystemReply) String

func (x *RestartSystemReply) String() string

func (*RestartSystemReply) Validate

func (m *RestartSystemReply) Validate() error

Validate checks the field values on RestartSystemReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RestartSystemReply) ValidateAll

func (m *RestartSystemReply) ValidateAll() error

ValidateAll checks the field values on RestartSystemReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RestartSystemReplyMultiError, or nil if none found.

type RestartSystemReplyMultiError

type RestartSystemReplyMultiError []error

RestartSystemReplyMultiError is an error wrapping multiple validation errors returned by RestartSystemReply.ValidateAll() if the designated constraints aren't met.

func (RestartSystemReplyMultiError) AllErrors

func (m RestartSystemReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RestartSystemReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RestartSystemReplyValidationError

type RestartSystemReplyValidationError struct {
	// contains filtered or unexported fields
}

RestartSystemReplyValidationError is the validation error returned by RestartSystemReply.Validate if the designated constraints aren't met.

func (RestartSystemReplyValidationError) Cause

Cause function returns cause value.

func (RestartSystemReplyValidationError) Error

Error satisfies the builtin error interface

func (RestartSystemReplyValidationError) ErrorName

ErrorName returns error name.

func (RestartSystemReplyValidationError) Field

Field function returns field value.

func (RestartSystemReplyValidationError) Key

Key function returns key value.

func (RestartSystemReplyValidationError) Reason

Reason function returns reason value.

type RestartSystemRequest

type RestartSystemRequest struct {
	// contains filtered or unexported fields
}

RestartSystemRequest 重启系统请求

func (*RestartSystemRequest) Descriptor deprecated

func (*RestartSystemRequest) Descriptor() ([]byte, []int)

Deprecated: Use RestartSystemRequest.ProtoReflect.Descriptor instead.

func (*RestartSystemRequest) ProtoMessage

func (*RestartSystemRequest) ProtoMessage()

func (*RestartSystemRequest) ProtoReflect

func (x *RestartSystemRequest) ProtoReflect() protoreflect.Message

func (*RestartSystemRequest) Reset

func (x *RestartSystemRequest) Reset()

func (*RestartSystemRequest) String

func (x *RestartSystemRequest) String() string

func (*RestartSystemRequest) Validate

func (m *RestartSystemRequest) Validate() error

Validate checks the field values on RestartSystemRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RestartSystemRequest) ValidateAll

func (m *RestartSystemRequest) ValidateAll() error

ValidateAll checks the field values on RestartSystemRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RestartSystemRequestMultiError, or nil if none found.

type RestartSystemRequestMultiError

type RestartSystemRequestMultiError []error

RestartSystemRequestMultiError is an error wrapping multiple validation errors returned by RestartSystemRequest.ValidateAll() if the designated constraints aren't met.

func (RestartSystemRequestMultiError) AllErrors

func (m RestartSystemRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RestartSystemRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RestartSystemRequestValidationError

type RestartSystemRequestValidationError struct {
	// contains filtered or unexported fields
}

RestartSystemRequestValidationError is the validation error returned by RestartSystemRequest.Validate if the designated constraints aren't met.

func (RestartSystemRequestValidationError) Cause

Cause function returns cause value.

func (RestartSystemRequestValidationError) Error

Error satisfies the builtin error interface

func (RestartSystemRequestValidationError) ErrorName

ErrorName returns error name.

func (RestartSystemRequestValidationError) Field

Field function returns field value.

func (RestartSystemRequestValidationError) Key

Key function returns key value.

func (RestartSystemRequestValidationError) Reason

Reason function returns reason value.

type ToolClient

type ToolClient interface {
	// GetSystemLog 获取系统日志
	GetSystemLog(ctx context.Context, in *GetSystemLogRequest, opts ...grpc.CallOption) (*GetSystemLogReply, error)
	// RestartSystem 重启系统
	RestartSystem(ctx context.Context, in *RestartSystemRequest, opts ...grpc.CallOption) (*RestartSystemReply, error)
	// GetVersion 获取版本信息
	GetVersion(ctx context.Context, in *GetVersionRequest, opts ...grpc.CallOption) (*GetVersionReply, error)
	// QueryIPLocation 查询IP地理位置
	QueryIPLocation(ctx context.Context, in *QueryIPLocationRequest, opts ...grpc.CallOption) (*QueryIPLocationReply, error)
}

ToolClient is the client API for Tool 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 NewToolClient

func NewToolClient(cc grpc.ClientConnInterface) ToolClient

type ToolHTTPClient

type ToolHTTPClient interface {
	// GetSystemLog GetSystemLog 获取系统日志
	GetSystemLog(ctx context.Context, req *GetSystemLogRequest, opts ...http.CallOption) (rsp *GetSystemLogReply, err error)
	// GetVersion GetVersion 获取版本信息
	GetVersion(ctx context.Context, req *GetVersionRequest, opts ...http.CallOption) (rsp *GetVersionReply, err error)
	// QueryIPLocation QueryIPLocation 查询IP地理位置
	QueryIPLocation(ctx context.Context, req *QueryIPLocationRequest, opts ...http.CallOption) (rsp *QueryIPLocationReply, err error)
	// RestartSystem RestartSystem 重启系统
	RestartSystem(ctx context.Context, req *RestartSystemRequest, opts ...http.CallOption) (rsp *RestartSystemReply, err error)
}

func NewToolHTTPClient

func NewToolHTTPClient(client *http.Client) ToolHTTPClient

type ToolHTTPClientImpl

type ToolHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*ToolHTTPClientImpl) GetSystemLog

GetSystemLog GetSystemLog 获取系统日志

func (*ToolHTTPClientImpl) GetVersion

GetVersion GetVersion 获取版本信息

func (*ToolHTTPClientImpl) QueryIPLocation

QueryIPLocation QueryIPLocation 查询IP地理位置

func (*ToolHTTPClientImpl) RestartSystem

RestartSystem RestartSystem 重启系统

type ToolHTTPServer

type ToolHTTPServer interface {
	// GetSystemLog GetSystemLog 获取系统日志
	GetSystemLog(context.Context, *GetSystemLogRequest) (*GetSystemLogReply, error)
	// GetVersion GetVersion 获取版本信息
	GetVersion(context.Context, *GetVersionRequest) (*GetVersionReply, error)
	// QueryIPLocation QueryIPLocation 查询IP地理位置
	QueryIPLocation(context.Context, *QueryIPLocationRequest) (*QueryIPLocationReply, error)
	// RestartSystem RestartSystem 重启系统
	RestartSystem(context.Context, *RestartSystemRequest) (*RestartSystemReply, error)
}

type ToolServer

type ToolServer interface {
	// GetSystemLog 获取系统日志
	GetSystemLog(context.Context, *GetSystemLogRequest) (*GetSystemLogReply, error)
	// RestartSystem 重启系统
	RestartSystem(context.Context, *RestartSystemRequest) (*RestartSystemReply, error)
	// GetVersion 获取版本信息
	GetVersion(context.Context, *GetVersionRequest) (*GetVersionReply, error)
	// QueryIPLocation 查询IP地理位置
	QueryIPLocation(context.Context, *QueryIPLocationRequest) (*QueryIPLocationReply, error)
	// contains filtered or unexported methods
}

ToolServer is the server API for Tool service. All implementations must embed UnimplementedToolServer for forward compatibility.

type UnimplementedToolServer

type UnimplementedToolServer struct{}

UnimplementedToolServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedToolServer) GetSystemLog

func (UnimplementedToolServer) GetVersion

func (UnimplementedToolServer) QueryIPLocation

func (UnimplementedToolServer) RestartSystem

type UnsafeToolServer

type UnsafeToolServer interface {
	// contains filtered or unexported methods
}

UnsafeToolServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ToolServer will result in compilation errors.

type VersionResponse

type VersionResponse struct {
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*VersionResponse) Descriptor deprecated

func (*VersionResponse) Descriptor() ([]byte, []int)

Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.

func (*VersionResponse) GetVersion

func (x *VersionResponse) GetVersion() string

func (*VersionResponse) ProtoMessage

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) ProtoReflect

func (x *VersionResponse) ProtoReflect() protoreflect.Message

func (*VersionResponse) Reset

func (x *VersionResponse) Reset()

func (*VersionResponse) String

func (x *VersionResponse) String() string

func (*VersionResponse) Validate

func (m *VersionResponse) Validate() error

Validate checks the field values on VersionResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*VersionResponse) ValidateAll

func (m *VersionResponse) ValidateAll() error

ValidateAll checks the field values on VersionResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VersionResponseMultiError, or nil if none found.

type VersionResponseMultiError

type VersionResponseMultiError []error

VersionResponseMultiError is an error wrapping multiple validation errors returned by VersionResponse.ValidateAll() if the designated constraints aren't met.

func (VersionResponseMultiError) AllErrors

func (m VersionResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (VersionResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type VersionResponseValidationError

type VersionResponseValidationError struct {
	// contains filtered or unexported fields
}

VersionResponseValidationError is the validation error returned by VersionResponse.Validate if the designated constraints aren't met.

func (VersionResponseValidationError) Cause

Cause function returns cause value.

func (VersionResponseValidationError) Error

Error satisfies the builtin error interface

func (VersionResponseValidationError) ErrorName

func (e VersionResponseValidationError) ErrorName() string

ErrorName returns error name.

func (VersionResponseValidationError) Field

Field function returns field value.

func (VersionResponseValidationError) Key

Key function returns key value.

func (VersionResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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