Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterToolHTTPServer(s *http.Server, srv ToolHTTPServer)
- func RegisterToolServer(s grpc.ServiceRegistrar, srv ToolServer)
- type GetSystemLogReply
- func (*GetSystemLogReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetSystemLogReply) GetCode() int32
- func (x *GetSystemLogReply) GetData() *LogResponse
- func (x *GetSystemLogReply) GetMessage() string
- func (*GetSystemLogReply) ProtoMessage()
- func (x *GetSystemLogReply) ProtoReflect() protoreflect.Message
- func (x *GetSystemLogReply) Reset()
- func (x *GetSystemLogReply) String() string
- func (m *GetSystemLogReply) Validate() error
- func (m *GetSystemLogReply) ValidateAll() error
- type GetSystemLogReplyMultiError
- type GetSystemLogReplyValidationError
- func (e GetSystemLogReplyValidationError) Cause() error
- func (e GetSystemLogReplyValidationError) Error() string
- func (e GetSystemLogReplyValidationError) ErrorName() string
- func (e GetSystemLogReplyValidationError) Field() string
- func (e GetSystemLogReplyValidationError) Key() bool
- func (e GetSystemLogReplyValidationError) Reason() string
- type GetSystemLogRequest
- func (*GetSystemLogRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetSystemLogRequest) ProtoMessage()
- func (x *GetSystemLogRequest) ProtoReflect() protoreflect.Message
- func (x *GetSystemLogRequest) Reset()
- func (x *GetSystemLogRequest) String() string
- func (m *GetSystemLogRequest) Validate() error
- func (m *GetSystemLogRequest) ValidateAll() error
- type GetSystemLogRequestMultiError
- type GetSystemLogRequestValidationError
- func (e GetSystemLogRequestValidationError) Cause() error
- func (e GetSystemLogRequestValidationError) Error() string
- func (e GetSystemLogRequestValidationError) ErrorName() string
- func (e GetSystemLogRequestValidationError) Field() string
- func (e GetSystemLogRequestValidationError) Key() bool
- func (e GetSystemLogRequestValidationError) Reason() string
- type GetVersionReply
- func (*GetVersionReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetVersionReply) GetCode() int32
- func (x *GetVersionReply) GetData() *VersionResponse
- func (x *GetVersionReply) GetMessage() string
- func (*GetVersionReply) ProtoMessage()
- func (x *GetVersionReply) ProtoReflect() protoreflect.Message
- func (x *GetVersionReply) Reset()
- func (x *GetVersionReply) String() string
- func (m *GetVersionReply) Validate() error
- func (m *GetVersionReply) ValidateAll() error
- type GetVersionReplyMultiError
- type GetVersionReplyValidationError
- func (e GetVersionReplyValidationError) Cause() error
- func (e GetVersionReplyValidationError) Error() string
- func (e GetVersionReplyValidationError) ErrorName() string
- func (e GetVersionReplyValidationError) Field() string
- func (e GetVersionReplyValidationError) Key() bool
- func (e GetVersionReplyValidationError) Reason() string
- type GetVersionRequest
- func (*GetVersionRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetVersionRequest) ProtoMessage()
- func (x *GetVersionRequest) ProtoReflect() protoreflect.Message
- func (x *GetVersionRequest) Reset()
- func (x *GetVersionRequest) String() string
- func (m *GetVersionRequest) Validate() error
- func (m *GetVersionRequest) ValidateAll() error
- type GetVersionRequestMultiError
- type GetVersionRequestValidationError
- func (e GetVersionRequestValidationError) Cause() error
- func (e GetVersionRequestValidationError) Error() string
- func (e GetVersionRequestValidationError) ErrorName() string
- func (e GetVersionRequestValidationError) Field() string
- func (e GetVersionRequestValidationError) Key() bool
- func (e GetVersionRequestValidationError) Reason() string
- type LogResponse
- func (*LogResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LogResponse) GetList() []*structpb.Struct
- func (*LogResponse) ProtoMessage()
- func (x *LogResponse) ProtoReflect() protoreflect.Message
- func (x *LogResponse) Reset()
- func (x *LogResponse) String() string
- func (m *LogResponse) Validate() error
- func (m *LogResponse) ValidateAll() error
- type LogResponseMultiError
- type LogResponseValidationError
- func (e LogResponseValidationError) Cause() error
- func (e LogResponseValidationError) Error() string
- func (e LogResponseValidationError) ErrorName() string
- func (e LogResponseValidationError) Field() string
- func (e LogResponseValidationError) Key() bool
- func (e LogResponseValidationError) Reason() string
- type QueryIPLocationReply
- func (*QueryIPLocationReply) Descriptor() ([]byte, []int)deprecated
- func (x *QueryIPLocationReply) GetCode() int32
- func (x *QueryIPLocationReply) GetData() *QueryIPLocationResponse
- func (x *QueryIPLocationReply) GetMessage() string
- func (*QueryIPLocationReply) ProtoMessage()
- func (x *QueryIPLocationReply) ProtoReflect() protoreflect.Message
- func (x *QueryIPLocationReply) Reset()
- func (x *QueryIPLocationReply) String() string
- func (m *QueryIPLocationReply) Validate() error
- func (m *QueryIPLocationReply) ValidateAll() error
- type QueryIPLocationReplyMultiError
- type QueryIPLocationReplyValidationError
- func (e QueryIPLocationReplyValidationError) Cause() error
- func (e QueryIPLocationReplyValidationError) Error() string
- func (e QueryIPLocationReplyValidationError) ErrorName() string
- func (e QueryIPLocationReplyValidationError) Field() string
- func (e QueryIPLocationReplyValidationError) Key() bool
- func (e QueryIPLocationReplyValidationError) Reason() string
- type QueryIPLocationRequest
- func (*QueryIPLocationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryIPLocationRequest) GetIp() string
- func (*QueryIPLocationRequest) ProtoMessage()
- func (x *QueryIPLocationRequest) ProtoReflect() protoreflect.Message
- func (x *QueryIPLocationRequest) Reset()
- func (x *QueryIPLocationRequest) String() string
- func (m *QueryIPLocationRequest) Validate() error
- func (m *QueryIPLocationRequest) ValidateAll() error
- type QueryIPLocationRequestMultiError
- type QueryIPLocationRequestValidationError
- func (e QueryIPLocationRequestValidationError) Cause() error
- func (e QueryIPLocationRequestValidationError) Error() string
- func (e QueryIPLocationRequestValidationError) ErrorName() string
- func (e QueryIPLocationRequestValidationError) Field() string
- func (e QueryIPLocationRequestValidationError) Key() bool
- func (e QueryIPLocationRequestValidationError) Reason() string
- type QueryIPLocationResponse
- func (*QueryIPLocationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryIPLocationResponse) GetCity() string
- func (x *QueryIPLocationResponse) GetCountry() string
- func (x *QueryIPLocationResponse) GetRegion() string
- func (*QueryIPLocationResponse) ProtoMessage()
- func (x *QueryIPLocationResponse) ProtoReflect() protoreflect.Message
- func (x *QueryIPLocationResponse) Reset()
- func (x *QueryIPLocationResponse) String() string
- func (m *QueryIPLocationResponse) Validate() error
- func (m *QueryIPLocationResponse) ValidateAll() error
- type QueryIPLocationResponseMultiError
- type QueryIPLocationResponseValidationError
- func (e QueryIPLocationResponseValidationError) Cause() error
- func (e QueryIPLocationResponseValidationError) Error() string
- func (e QueryIPLocationResponseValidationError) ErrorName() string
- func (e QueryIPLocationResponseValidationError) Field() string
- func (e QueryIPLocationResponseValidationError) Key() bool
- func (e QueryIPLocationResponseValidationError) Reason() string
- type RestartSystemReply
- func (*RestartSystemReply) Descriptor() ([]byte, []int)deprecated
- func (x *RestartSystemReply) GetCode() int32
- func (x *RestartSystemReply) GetMessage() string
- func (*RestartSystemReply) ProtoMessage()
- func (x *RestartSystemReply) ProtoReflect() protoreflect.Message
- func (x *RestartSystemReply) Reset()
- func (x *RestartSystemReply) String() string
- func (m *RestartSystemReply) Validate() error
- func (m *RestartSystemReply) ValidateAll() error
- type RestartSystemReplyMultiError
- type RestartSystemReplyValidationError
- func (e RestartSystemReplyValidationError) Cause() error
- func (e RestartSystemReplyValidationError) Error() string
- func (e RestartSystemReplyValidationError) ErrorName() string
- func (e RestartSystemReplyValidationError) Field() string
- func (e RestartSystemReplyValidationError) Key() bool
- func (e RestartSystemReplyValidationError) Reason() string
- type RestartSystemRequest
- func (*RestartSystemRequest) Descriptor() ([]byte, []int)deprecated
- func (*RestartSystemRequest) ProtoMessage()
- func (x *RestartSystemRequest) ProtoReflect() protoreflect.Message
- func (x *RestartSystemRequest) Reset()
- func (x *RestartSystemRequest) String() string
- func (m *RestartSystemRequest) Validate() error
- func (m *RestartSystemRequest) ValidateAll() error
- type RestartSystemRequestMultiError
- type RestartSystemRequestValidationError
- func (e RestartSystemRequestValidationError) Cause() error
- func (e RestartSystemRequestValidationError) Error() string
- func (e RestartSystemRequestValidationError) ErrorName() string
- func (e RestartSystemRequestValidationError) Field() string
- func (e RestartSystemRequestValidationError) Key() bool
- func (e RestartSystemRequestValidationError) Reason() string
- type ToolClient
- type ToolHTTPClient
- type ToolHTTPClientImpl
- func (c *ToolHTTPClientImpl) GetSystemLog(ctx context.Context, in *GetSystemLogRequest, opts ...http.CallOption) (*GetSystemLogReply, error)
- func (c *ToolHTTPClientImpl) GetVersion(ctx context.Context, in *GetVersionRequest, opts ...http.CallOption) (*GetVersionReply, error)
- func (c *ToolHTTPClientImpl) QueryIPLocation(ctx context.Context, in *QueryIPLocationRequest, opts ...http.CallOption) (*QueryIPLocationReply, error)
- func (c *ToolHTTPClientImpl) RestartSystem(ctx context.Context, in *RestartSystemRequest, opts ...http.CallOption) (*RestartSystemReply, error)
- type ToolHTTPServer
- type ToolServer
- type UnimplementedToolServer
- func (UnimplementedToolServer) GetSystemLog(context.Context, *GetSystemLogRequest) (*GetSystemLogReply, error)
- func (UnimplementedToolServer) GetVersion(context.Context, *GetVersionRequest) (*GetVersionReply, error)
- func (UnimplementedToolServer) QueryIPLocation(context.Context, *QueryIPLocationRequest) (*QueryIPLocationReply, error)
- func (UnimplementedToolServer) RestartSystem(context.Context, *RestartSystemRequest) (*RestartSystemReply, error)
- type UnsafeToolServer
- type VersionResponse
- func (*VersionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VersionResponse) GetVersion() string
- func (*VersionResponse) ProtoMessage()
- func (x *VersionResponse) ProtoReflect() protoreflect.Message
- func (x *VersionResponse) Reset()
- func (x *VersionResponse) String() string
- func (m *VersionResponse) Validate() error
- func (m *VersionResponse) ValidateAll() error
- type VersionResponseMultiError
- type VersionResponseValidationError
- func (e VersionResponseValidationError) Cause() error
- func (e VersionResponseValidationError) Error() string
- func (e VersionResponseValidationError) ErrorName() string
- func (e VersionResponseValidationError) Field() string
- func (e VersionResponseValidationError) Key() bool
- func (e VersionResponseValidationError) Reason() string
Constants ¶
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" )
const OperationToolGetSystemLog = "/api.admin.tool.v1.Tool/GetSystemLog"
const OperationToolGetVersion = "/api.admin.tool.v1.Tool/GetVersion"
const OperationToolQueryIPLocation = "/api.admin.tool.v1.Tool/QueryIPLocation"
const OperationToolRestartSystem = "/api.admin.tool.v1.Tool/RestartSystem"
Variables ¶
var File_admin_tool_v1_tool_proto protoreflect.FileDescriptor
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 ¶
func (m GetSystemLogReplyMultiError) Error() string
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 ¶
func (e GetSystemLogReplyValidationError) Cause() error
Cause function returns cause value.
func (GetSystemLogReplyValidationError) Error ¶
func (e GetSystemLogReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetSystemLogReplyValidationError) ErrorName ¶
func (e GetSystemLogReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetSystemLogReplyValidationError) Field ¶
func (e GetSystemLogReplyValidationError) Field() string
Field function returns field value.
func (GetSystemLogReplyValidationError) Key ¶
func (e GetSystemLogReplyValidationError) Key() bool
Key function returns key value.
func (GetSystemLogReplyValidationError) Reason ¶
func (e GetSystemLogReplyValidationError) Reason() string
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 ¶
func (m GetSystemLogRequestMultiError) Error() string
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 ¶
func (e GetSystemLogRequestValidationError) Cause() error
Cause function returns cause value.
func (GetSystemLogRequestValidationError) Error ¶
func (e GetSystemLogRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetSystemLogRequestValidationError) ErrorName ¶
func (e GetSystemLogRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetSystemLogRequestValidationError) Field ¶
func (e GetSystemLogRequestValidationError) Field() string
Field function returns field value.
func (GetSystemLogRequestValidationError) Key ¶
func (e GetSystemLogRequestValidationError) Key() bool
Key function returns key value.
func (GetSystemLogRequestValidationError) Reason ¶
func (e GetSystemLogRequestValidationError) Reason() string
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 ¶
func (m GetVersionReplyMultiError) Error() string
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 ¶
func (e GetVersionReplyValidationError) Cause() error
Cause function returns cause value.
func (GetVersionReplyValidationError) Error ¶
func (e GetVersionReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetVersionReplyValidationError) ErrorName ¶
func (e GetVersionReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetVersionReplyValidationError) Field ¶
func (e GetVersionReplyValidationError) Field() string
Field function returns field value.
func (GetVersionReplyValidationError) Key ¶
func (e GetVersionReplyValidationError) Key() bool
Key function returns key value.
func (GetVersionReplyValidationError) Reason ¶
func (e GetVersionReplyValidationError) Reason() string
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 ¶
func (m GetVersionRequestMultiError) Error() string
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 ¶
func (e GetVersionRequestValidationError) Cause() error
Cause function returns cause value.
func (GetVersionRequestValidationError) Error ¶
func (e GetVersionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetVersionRequestValidationError) ErrorName ¶
func (e GetVersionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetVersionRequestValidationError) Field ¶
func (e GetVersionRequestValidationError) Field() string
Field function returns field value.
func (GetVersionRequestValidationError) Key ¶
func (e GetVersionRequestValidationError) Key() bool
Key function returns key value.
func (GetVersionRequestValidationError) Reason ¶
func (e GetVersionRequestValidationError) Reason() string
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 ¶
func (e LogResponseValidationError) Cause() error
Cause function returns cause value.
func (LogResponseValidationError) Error ¶
func (e LogResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LogResponseValidationError) ErrorName ¶
func (e LogResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LogResponseValidationError) Field ¶
func (e LogResponseValidationError) Field() string
Field function returns field value.
func (LogResponseValidationError) Key ¶
func (e LogResponseValidationError) Key() bool
Key function returns key value.
func (LogResponseValidationError) Reason ¶
func (e LogResponseValidationError) Reason() string
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 (x *QueryIPLocationReply) GetData() *QueryIPLocationResponse
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 ¶
func (m QueryIPLocationReplyMultiError) Error() string
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 ¶
func (e QueryIPLocationReplyValidationError) Cause() error
Cause function returns cause value.
func (QueryIPLocationReplyValidationError) Error ¶
func (e QueryIPLocationReplyValidationError) Error() string
Error satisfies the builtin error interface
func (QueryIPLocationReplyValidationError) ErrorName ¶
func (e QueryIPLocationReplyValidationError) ErrorName() string
ErrorName returns error name.
func (QueryIPLocationReplyValidationError) Field ¶
func (e QueryIPLocationReplyValidationError) Field() string
Field function returns field value.
func (QueryIPLocationReplyValidationError) Key ¶
func (e QueryIPLocationReplyValidationError) Key() bool
Key function returns key value.
func (QueryIPLocationReplyValidationError) Reason ¶
func (e QueryIPLocationReplyValidationError) Reason() string
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 ¶
func (m QueryIPLocationRequestMultiError) Error() string
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 ¶
func (e QueryIPLocationRequestValidationError) Cause() error
Cause function returns cause value.
func (QueryIPLocationRequestValidationError) Error ¶
func (e QueryIPLocationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (QueryIPLocationRequestValidationError) ErrorName ¶
func (e QueryIPLocationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (QueryIPLocationRequestValidationError) Field ¶
func (e QueryIPLocationRequestValidationError) Field() string
Field function returns field value.
func (QueryIPLocationRequestValidationError) Key ¶
func (e QueryIPLocationRequestValidationError) Key() bool
Key function returns key value.
func (QueryIPLocationRequestValidationError) Reason ¶
func (e QueryIPLocationRequestValidationError) Reason() string
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 ¶
func (m QueryIPLocationResponseMultiError) Error() string
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 ¶
func (e QueryIPLocationResponseValidationError) Cause() error
Cause function returns cause value.
func (QueryIPLocationResponseValidationError) Error ¶
func (e QueryIPLocationResponseValidationError) Error() string
Error satisfies the builtin error interface
func (QueryIPLocationResponseValidationError) ErrorName ¶
func (e QueryIPLocationResponseValidationError) ErrorName() string
ErrorName returns error name.
func (QueryIPLocationResponseValidationError) Field ¶
func (e QueryIPLocationResponseValidationError) Field() string
Field function returns field value.
func (QueryIPLocationResponseValidationError) Key ¶
func (e QueryIPLocationResponseValidationError) Key() bool
Key function returns key value.
func (QueryIPLocationResponseValidationError) Reason ¶
func (e QueryIPLocationResponseValidationError) Reason() string
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 ¶
func (m RestartSystemReplyMultiError) Error() string
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 ¶
func (e RestartSystemReplyValidationError) Cause() error
Cause function returns cause value.
func (RestartSystemReplyValidationError) Error ¶
func (e RestartSystemReplyValidationError) Error() string
Error satisfies the builtin error interface
func (RestartSystemReplyValidationError) ErrorName ¶
func (e RestartSystemReplyValidationError) ErrorName() string
ErrorName returns error name.
func (RestartSystemReplyValidationError) Field ¶
func (e RestartSystemReplyValidationError) Field() string
Field function returns field value.
func (RestartSystemReplyValidationError) Key ¶
func (e RestartSystemReplyValidationError) Key() bool
Key function returns key value.
func (RestartSystemReplyValidationError) Reason ¶
func (e RestartSystemReplyValidationError) Reason() string
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 ¶
func (m RestartSystemRequestMultiError) Error() string
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 ¶
func (e RestartSystemRequestValidationError) Cause() error
Cause function returns cause value.
func (RestartSystemRequestValidationError) Error ¶
func (e RestartSystemRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RestartSystemRequestValidationError) ErrorName ¶
func (e RestartSystemRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RestartSystemRequestValidationError) Field ¶
func (e RestartSystemRequestValidationError) Field() string
Field function returns field value.
func (RestartSystemRequestValidationError) Key ¶
func (e RestartSystemRequestValidationError) Key() bool
Key function returns key value.
func (RestartSystemRequestValidationError) Reason ¶
func (e RestartSystemRequestValidationError) Reason() string
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 ¶
func (c *ToolHTTPClientImpl) GetSystemLog(ctx context.Context, in *GetSystemLogRequest, opts ...http.CallOption) (*GetSystemLogReply, error)
GetSystemLog GetSystemLog 获取系统日志
func (*ToolHTTPClientImpl) GetVersion ¶
func (c *ToolHTTPClientImpl) GetVersion(ctx context.Context, in *GetVersionRequest, opts ...http.CallOption) (*GetVersionReply, error)
GetVersion GetVersion 获取版本信息
func (*ToolHTTPClientImpl) QueryIPLocation ¶
func (c *ToolHTTPClientImpl) QueryIPLocation(ctx context.Context, in *QueryIPLocationRequest, opts ...http.CallOption) (*QueryIPLocationReply, error)
QueryIPLocation QueryIPLocation 查询IP地理位置
func (*ToolHTTPClientImpl) RestartSystem ¶
func (c *ToolHTTPClientImpl) RestartSystem(ctx context.Context, in *RestartSystemRequest, opts ...http.CallOption) (*RestartSystemReply, error)
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) GetSystemLog(context.Context, *GetSystemLogRequest) (*GetSystemLogReply, error)
func (UnimplementedToolServer) GetVersion ¶
func (UnimplementedToolServer) GetVersion(context.Context, *GetVersionRequest) (*GetVersionReply, error)
func (UnimplementedToolServer) QueryIPLocation ¶
func (UnimplementedToolServer) QueryIPLocation(context.Context, *QueryIPLocationRequest) (*QueryIPLocationReply, error)
func (UnimplementedToolServer) RestartSystem ¶
func (UnimplementedToolServer) RestartSystem(context.Context, *RestartSystemRequest) (*RestartSystemReply, error)
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 ¶
func (m VersionResponseMultiError) Error() string
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 ¶
func (e VersionResponseValidationError) Cause() error
Cause function returns cause value.
func (VersionResponseValidationError) Error ¶
func (e VersionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (VersionResponseValidationError) ErrorName ¶
func (e VersionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (VersionResponseValidationError) Field ¶
func (e VersionResponseValidationError) Field() string
Field function returns field value.
func (VersionResponseValidationError) Key ¶
func (e VersionResponseValidationError) Key() bool
Key function returns key value.
func (VersionResponseValidationError) Reason ¶
func (e VersionResponseValidationError) Reason() string
Reason function returns reason value.