Documentation ¶
Index ¶
Constants ¶
const ( SysStatsService_ReportSystemStats_FullMethodName = "/service.SysStatsService/reportSystemStats" SysStatsService_ReportHostInformation_FullMethodName = "/service.SysStatsService/reportHostInformation" )
Variables ¶
var File_grpc_service_sys_stats_service_proto protoreflect.FileDescriptor
var SysStatsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "service.SysStatsService", HandlerType: (*SysStatsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "reportSystemStats", Handler: _SysStatsService_ReportSystemStats_Handler, }, { MethodName: "reportHostInformation", Handler: _SysStatsService_ReportHostInformation_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc/service/sys_stats_service.proto", }
SysStatsService_ServiceDesc is the grpc.ServiceDesc for SysStatsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSysStatsServiceServer ¶
func RegisterSysStatsServiceServer(s grpc.ServiceRegistrar, srv SysStatsServiceServer)
Types ¶
type SysStatsServiceClient ¶
type SysStatsServiceClient interface { // report performance statistics frequently ReportSystemStats(ctx context.Context, in *model.SysStats, opts ...grpc.CallOption) (*emptypb.Empty, error) // report host information, only report once after agent started ReportHostInformation(ctx context.Context, in *model.HostInfo, opts ...grpc.CallOption) (*emptypb.Empty, error) }
SysStatsServiceClient is the client API for SysStatsService 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 NewSysStatsServiceClient ¶
func NewSysStatsServiceClient(cc grpc.ClientConnInterface) SysStatsServiceClient
type SysStatsServiceServer ¶
type SysStatsServiceServer interface { // report performance statistics frequently ReportSystemStats(context.Context, *model.SysStats) (*emptypb.Empty, error) // report host information, only report once after agent started ReportHostInformation(context.Context, *model.HostInfo) (*emptypb.Empty, error) // contains filtered or unexported methods }
SysStatsServiceServer is the server API for SysStatsService service. All implementations must embed UnimplementedSysStatsServiceServer for forward compatibility
type UnimplementedSysStatsServiceServer ¶
type UnimplementedSysStatsServiceServer struct { }
UnimplementedSysStatsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSysStatsServiceServer) ReportHostInformation ¶
func (UnimplementedSysStatsServiceServer) ReportSystemStats ¶
type UnsafeSysStatsServiceServer ¶
type UnsafeSysStatsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSysStatsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SysStatsServiceServer will result in compilation errors.