Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_pb_service_proto protoreflect.FileDescriptor
var Monitor_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.Monitor", HandlerType: (*MonitorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IsRunning", Handler: _Monitor_IsRunning_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pb/service.proto", }
Monitor_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)
Functions ¶
func RegisterMonitorServer ¶
func RegisterMonitorServer(s grpc.ServiceRegistrar, srv MonitorServer)
Types ¶
type MonitorClient ¶
type MonitorClient interface {
IsRunning(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*wrapperspb.BoolValue, error)
}
MonitorClient is the client API for Monitor 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 NewMonitorClient ¶
func NewMonitorClient(cc grpc.ClientConnInterface) MonitorClient
type MonitorServer ¶
type MonitorServer interface { IsRunning(context.Context, *emptypb.Empty) (*wrapperspb.BoolValue, error) // contains filtered or unexported methods }
MonitorServer is the server API for Monitor service. All implementations must embed UnimplementedMonitorServer for forward compatibility
type UnimplementedMonitorServer ¶
type UnimplementedMonitorServer struct { }
UnimplementedMonitorServer must be embedded to have forward compatible implementations.
func (UnimplementedMonitorServer) IsRunning ¶
func (UnimplementedMonitorServer) IsRunning(context.Context, *emptypb.Empty) (*wrapperspb.BoolValue, error)
type UnsafeMonitorServer ¶
type UnsafeMonitorServer interface {
// contains filtered or unexported methods
}
UnsafeMonitorServer 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.