service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SysStatsService_ReportSystemStats_FullMethodName     = "/service.SysStatsService/reportSystemStats"
	SysStatsService_ReportHostInformation_FullMethodName = "/service.SysStatsService/reportHostInformation"
)

Variables

View Source
var File_grpc_service_sys_stats_service_proto protoreflect.FileDescriptor
View Source
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.

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.

Jump to

Keyboard shortcuts

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