Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_mongodbhealth_mongodbhealthpb_mongodbhealthservice_proto protoreflect.FileDescriptor
Functions ¶
func RegisterMongoDbHealthServiceServer ¶
func RegisterMongoDbHealthServiceServer(s grpc.ServiceRegistrar, srv MongoDbHealthServiceServer)
Types ¶
type Health ¶
type Health struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*Health) Descriptor
deprecated
func (*Health) ProtoMessage ¶
func (*Health) ProtoMessage()
func (*Health) ProtoReflect ¶
func (x *Health) ProtoReflect() protoreflect.Message
type HealthResponse ¶
type HealthResponse struct { Health *Health `protobuf:"bytes,1,opt,name=health,proto3" json:"health,omitempty"` // contains filtered or unexported fields }
func (*HealthResponse) Descriptor
deprecated
func (*HealthResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthResponse.ProtoReflect.Descriptor instead.
func (*HealthResponse) GetHealth ¶
func (x *HealthResponse) GetHealth() *Health
func (*HealthResponse) ProtoMessage ¶
func (*HealthResponse) ProtoMessage()
func (*HealthResponse) ProtoReflect ¶
func (x *HealthResponse) ProtoReflect() protoreflect.Message
func (*HealthResponse) Reset ¶
func (x *HealthResponse) Reset()
func (*HealthResponse) String ¶
func (x *HealthResponse) String() string
type MongoDbHealthServiceClient ¶
type MongoDbHealthServiceClient interface { // https://developers.google.com/protocol-buffers/docs/proto3#any // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Empty Health(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*HealthResponse, error) }
MongoDbHealthServiceClient is the client API for MongoDbHealthService 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 NewMongoDbHealthServiceClient ¶
func NewMongoDbHealthServiceClient(cc grpc.ClientConnInterface) MongoDbHealthServiceClient
type MongoDbHealthServiceServer ¶
type MongoDbHealthServiceServer interface { // https://developers.google.com/protocol-buffers/docs/proto3#any // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Empty Health(context.Context, *emptypb.Empty) (*HealthResponse, error) // contains filtered or unexported methods }
MongoDbHealthServiceServer is the server API for MongoDbHealthService service. All implementations must embed UnimplementedMongoDbHealthServiceServer for forward compatibility
type UnimplementedMongoDbHealthServiceServer ¶
type UnimplementedMongoDbHealthServiceServer struct { }
UnimplementedMongoDbHealthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMongoDbHealthServiceServer) Health ¶
func (UnimplementedMongoDbHealthServiceServer) Health(context.Context, *emptypb.Empty) (*HealthResponse, error)
type UnsafeMongoDbHealthServiceServer ¶
type UnsafeMongoDbHealthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMongoDbHealthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MongoDbHealthServiceServer will result in compilation errors.