Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterSystemInformationServiceServer(s grpc.ServiceRegistrar, srv SystemInformationServiceServer)
- func SystemInformationServicePluginServer(server SystemInformationServiceServer) api.PluginServer
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRequest) GetId() string
- func (x *GetRequest) GetType() string
- func (*GetRequest) ProtoMessage()
- func (x *GetRequest) ProtoReflect() protoreflect.Message
- func (x *GetRequest) Reset()
- func (x *GetRequest) String() string
- func (m *GetRequest) Validate() error
- func (m *GetRequest) ValidateAll() error
- type GetRequestMultiError
- type GetRequestValidationError
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetResponse) GetMetadata() map[string]string
- func (*GetResponse) ProtoMessage()
- func (x *GetResponse) ProtoReflect() protoreflect.Message
- func (x *GetResponse) Reset()
- func (x *GetResponse) String() string
- func (m *GetResponse) Validate() error
- func (m *GetResponse) ValidateAll() error
- type GetResponseMultiError
- type GetResponseValidationError
- func (e GetResponseValidationError) Cause() error
- func (e GetResponseValidationError) Error() string
- func (e GetResponseValidationError) ErrorName() string
- func (e GetResponseValidationError) Field() string
- func (e GetResponseValidationError) Key() bool
- func (e GetResponseValidationError) Reason() string
- type SystemInformationServiceClient
- type SystemInformationServicePluginClient
- type SystemInformationServiceServer
- type UnimplementedSystemInformationServiceServer
- type UnsafeSystemInformationServiceServer
Constants ¶
const ( Type = "SystemInformationService" GRPCServiceFullName = "plugin.systeminformation.v1.SystemInformationService" )
const (
SystemInformationService_Get_FullMethodName = "/plugin.systeminformation.v1.SystemInformationService/Get"
)
Variables ¶
var File_plugin_systeminformation_v1_systeminformation_proto protoreflect.FileDescriptor
var SystemInformationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "plugin.systeminformation.v1.SystemInformationService", HandlerType: (*SystemInformationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _SystemInformationService_Get_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "plugin/systeminformation/v1/systeminformation.proto", }
SystemInformationService_ServiceDesc is the grpc.ServiceDesc for SystemInformationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSystemInformationServiceServer ¶
func RegisterSystemInformationServiceServer(s grpc.ServiceRegistrar, srv SystemInformationServiceServer)
func SystemInformationServicePluginServer ¶
func SystemInformationServicePluginServer(server SystemInformationServiceServer) api.PluginServer
Types ¶
type GetRequest ¶
type GetRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// contains filtered or unexported fields
}
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetId ¶
func (x *GetRequest) GetId() string
func (*GetRequest) GetType ¶
func (x *GetRequest) GetType() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
func (*GetRequest) Validate ¶
func (m *GetRequest) Validate() error
Validate checks the field values on GetRequest 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 (*GetRequest) ValidateAll ¶
func (m *GetRequest) ValidateAll() error
ValidateAll checks the field values on GetRequest 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 GetRequestMultiError, or nil if none found.
type GetRequestMultiError ¶
type GetRequestMultiError []error
GetRequestMultiError is an error wrapping multiple validation errors returned by GetRequest.ValidateAll() if the designated constraints aren't met.
func (GetRequestMultiError) AllErrors ¶
func (m GetRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRequestMultiError) Error ¶
func (m GetRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRequestValidationError ¶
type GetRequestValidationError struct {
// contains filtered or unexported fields
}
GetRequestValidationError is the validation error returned by GetRequest.Validate if the designated constraints aren't met.
func (GetRequestValidationError) Cause ¶
func (e GetRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRequestValidationError) Error ¶
func (e GetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRequestValidationError) ErrorName ¶
func (e GetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRequestValidationError) Field ¶
func (e GetRequestValidationError) Field() string
Field function returns field value.
func (GetRequestValidationError) Key ¶
func (e GetRequestValidationError) Key() bool
Key function returns key value.
func (GetRequestValidationError) Reason ¶
func (e GetRequestValidationError) Reason() string
Reason function returns reason value.
type GetResponse ¶
type GetResponse struct {
Metadata map[string]string `` /* 143-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetMetadata ¶
func (x *GetResponse) GetMetadata() map[string]string
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
func (*GetResponse) Validate ¶
func (m *GetResponse) Validate() error
Validate checks the field values on GetResponse 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 (*GetResponse) ValidateAll ¶
func (m *GetResponse) ValidateAll() error
ValidateAll checks the field values on GetResponse 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 GetResponseMultiError, or nil if none found.
type GetResponseMultiError ¶
type GetResponseMultiError []error
GetResponseMultiError is an error wrapping multiple validation errors returned by GetResponse.ValidateAll() if the designated constraints aren't met.
func (GetResponseMultiError) AllErrors ¶
func (m GetResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetResponseMultiError) Error ¶
func (m GetResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetResponseValidationError ¶
type GetResponseValidationError struct {
// contains filtered or unexported fields
}
GetResponseValidationError is the validation error returned by GetResponse.Validate if the designated constraints aren't met.
func (GetResponseValidationError) Cause ¶
func (e GetResponseValidationError) Cause() error
Cause function returns cause value.
func (GetResponseValidationError) Error ¶
func (e GetResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetResponseValidationError) ErrorName ¶
func (e GetResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetResponseValidationError) Field ¶
func (e GetResponseValidationError) Field() string
Field function returns field value.
func (GetResponseValidationError) Key ¶
func (e GetResponseValidationError) Key() bool
Key function returns key value.
func (GetResponseValidationError) Reason ¶
func (e GetResponseValidationError) Reason() string
Reason function returns reason value.
type SystemInformationServiceClient ¶
type SystemInformationServiceClient interface {
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
}
SystemInformationServiceClient is the client API for SystemInformationService 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 NewSystemInformationServiceClient ¶
func NewSystemInformationServiceClient(cc grpc.ClientConnInterface) SystemInformationServiceClient
type SystemInformationServicePluginClient ¶
type SystemInformationServicePluginClient struct {
SystemInformationServiceClient
}
func (*SystemInformationServicePluginClient) GRPCServiceName ¶
func (c *SystemInformationServicePluginClient) GRPCServiceName() string
func (*SystemInformationServicePluginClient) InitClient ¶
func (c *SystemInformationServicePluginClient) InitClient(conn grpc.ClientConnInterface) any
func (*SystemInformationServicePluginClient) IsInitialized ¶
func (c *SystemInformationServicePluginClient) IsInitialized() bool
func (SystemInformationServicePluginClient) Type ¶
func (s SystemInformationServicePluginClient) Type() string
type SystemInformationServiceServer ¶
type SystemInformationServiceServer interface {
Get(context.Context, *GetRequest) (*GetResponse, error)
// contains filtered or unexported methods
}
SystemInformationServiceServer is the server API for SystemInformationService service. All implementations must embed UnimplementedSystemInformationServiceServer for forward compatibility.
type UnimplementedSystemInformationServiceServer ¶
type UnimplementedSystemInformationServiceServer struct{}
UnimplementedSystemInformationServiceServer 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 (UnimplementedSystemInformationServiceServer) Get ¶
func (UnimplementedSystemInformationServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error)
type UnsafeSystemInformationServiceServer ¶
type UnsafeSystemInformationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSystemInformationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SystemInformationServiceServer will result in compilation errors.