{"modulePath":"github.com/linuxsuren/api-testing","version":"v0.0.21","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package monitor\n\n## Variables\n\n```go\nvar File_pkg_runner_monitor_monitor_proto protoreflect.FileDescriptor\n```\n\n```go\nvar Monitor_ServiceDesc = grpc.ServiceDesc{\n\tServiceName: \"monitor.Monitor\",\n\tHandlerType: (*MonitorServer)(nil),\n\tMethods: []grpc.MethodDesc{\n\t\t{\n\t\t\tMethodName: \"GetResourceUsage\",\n\t\t\tHandler:    _Monitor_GetResourceUsage_Handler,\n\t\t},\n\t},\n\tStreams:  []grpc.StreamDesc{},\n\tMetadata: \"pkg/runner/monitor/monitor.proto\",\n}\n```\nMonitor\\_ServiceDesc is the grpc.ServiceDesc for Monitor service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)\n\n## Functions\n\n```go\nfunc RegisterMonitorServer(s grpc.ServiceRegistrar, srv MonitorServer)\n```\n\n## Types\n\n```go\ntype MonitorClient interface {\n\tGetResourceUsage(ctx context.Context, in *Target, opts ...grpc.CallOption) (*ResourceUsage, error)\n}\n```\nMonitorClient is the client API for Monitor service.\n\nFor semantics around ctx use and closing/ending streaming RPCs, please refer to [https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream](https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream).\n\n```go\nfunc NewDumyMonitor() MonitorClient\n```\n\n```go\nfunc NewMonitorClient(cc grpc.ClientConnInterface) MonitorClient\n```\n\n```go\ntype MonitorServer interface {\n\tGetResourceUsage(context.Context, *Target) (*ResourceUsage, error)\n\t// contains filtered or unexported methods\n}\n```\nMonitorServer is the server API for Monitor service. All implementations must embed UnimplementedMonitorServer for forward compatibility\n\n```go\ntype ResourceUsage struct {\n\tMemory uint64 `protobuf:\"varint,1,opt,name=memory,proto3\" json:\"memory,omitempty\"`\n\tCpu    uint64 `protobuf:\"varint,2,opt,name=cpu,proto3\" json:\"cpu,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*ResourceUsage) Descriptor() ([]byte, []int)\n```\nDeprecated: Use ResourceUsage.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *ResourceUsage) GetCpu() uint64\n```\n\n```go\nfunc (x *ResourceUsage) GetMemory() uint64\n```\n\n```go\nfunc (*ResourceUsage) ProtoMessage()\n```\n\n```go\nfunc (x *ResourceUsage) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *ResourceUsage) Reset()\n```\n\n```go\nfunc (x *ResourceUsage) String() string\n```\n\n```go\ntype Target struct {\n\tName string `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*Target) Descriptor() ([]byte, []int)\n```\nDeprecated: Use Target.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *Target) GetName() string\n```\n\n```go\nfunc (*Target) ProtoMessage()\n```\n\n```go\nfunc (x *Target) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *Target) Reset()\n```\n\n```go\nfunc (x *Target) String() string\n```\n\n```go\ntype UnimplementedMonitorServer struct {\n}\n```\nUnimplementedMonitorServer must be embedded to have forward compatible implementations.\n\n```go\nfunc (UnimplementedMonitorServer) GetResourceUsage(context.Context, *Target) (*ResourceUsage, error)\n```\n\n```go\ntype UnsafeMonitorServer interface {\n\t// contains filtered or unexported methods\n}\n```\nUnsafeMonitorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MonitorServer will result in compilation errors.\n\n","path":"github.com/linuxsuren/api-testing/pkg/runner/monitor","name":"monitor","synopsis":"","isRedistributable":true}
