Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterSystemInformationServiceServer(s grpc.ServiceRegistrar, srv SystemInformationServiceServer)
- func SystemInformationServicePluginServer(server SystemInformationServiceServer) api.PluginServer
- type GetRequest
- type GetResponse
- 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
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
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.