Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMaleniaServiceServer(s grpc.ServiceRegistrar, srv MaleniaServiceServer)
- type HealthCheckRequest
- func (*HealthCheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheckRequest) GetRequestValue() int32
- func (*HealthCheckRequest) ProtoMessage()
- func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message
- func (x *HealthCheckRequest) Reset()
- func (x *HealthCheckRequest) String() string
- type HealthCheckResponse
- func (*HealthCheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheckResponse) GetHealthStatus() bool
- func (*HealthCheckResponse) ProtoMessage()
- func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
- func (x *HealthCheckResponse) Reset()
- func (x *HealthCheckResponse) String() string
- type MaleniaServiceClient
- type MaleniaServiceServer
- type UnimplementedMaleniaServiceServer
- type UnsafeMaleniaServiceServer
Constants ¶
const (
MaleniaService_HealthCheck_FullMethodName = "/malenia.MaleniaService/HealthCheck"
)
Variables ¶
var File_proto_malenia_malenia_proto protoreflect.FileDescriptor
var MaleniaService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "malenia.MaleniaService", HandlerType: (*MaleniaServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "HealthCheck", Handler: _MaleniaService_HealthCheck_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/malenia/malenia.proto", }
MaleniaService_ServiceDesc is the grpc.ServiceDesc for MaleniaService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMaleniaServiceServer ¶
func RegisterMaleniaServiceServer(s grpc.ServiceRegistrar, srv MaleniaServiceServer)
Types ¶
type HealthCheckRequest ¶
type HealthCheckRequest struct { RequestValue int32 `protobuf:"varint,1,opt,name=request_value,json=requestValue,proto3" json:"request_value,omitempty"` // contains filtered or unexported fields }
Request message for the Healthcheck operation
func (*HealthCheckRequest) Descriptor
deprecated
func (*HealthCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckRequest.ProtoReflect.Descriptor instead.
func (*HealthCheckRequest) GetRequestValue ¶
func (x *HealthCheckRequest) GetRequestValue() int32
func (*HealthCheckRequest) ProtoMessage ¶
func (*HealthCheckRequest) ProtoMessage()
func (*HealthCheckRequest) ProtoReflect ¶
func (x *HealthCheckRequest) ProtoReflect() protoreflect.Message
func (*HealthCheckRequest) Reset ¶
func (x *HealthCheckRequest) Reset()
func (*HealthCheckRequest) String ¶
func (x *HealthCheckRequest) String() string
type HealthCheckResponse ¶
type HealthCheckResponse struct { HealthStatus bool `protobuf:"varint,1,opt,name=health_status,json=healthStatus,proto3" json:"health_status,omitempty"` // contains filtered or unexported fields }
Response message for the Healthcheck operation
func (*HealthCheckResponse) Descriptor
deprecated
func (*HealthCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.
func (*HealthCheckResponse) GetHealthStatus ¶
func (x *HealthCheckResponse) GetHealthStatus() bool
func (*HealthCheckResponse) ProtoMessage ¶
func (*HealthCheckResponse) ProtoMessage()
func (*HealthCheckResponse) ProtoReflect ¶
func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
func (*HealthCheckResponse) Reset ¶
func (x *HealthCheckResponse) Reset()
func (*HealthCheckResponse) String ¶
func (x *HealthCheckResponse) String() string
type MaleniaServiceClient ¶
type MaleniaServiceClient interface {
HealthCheck(ctx context.Context, in *HealthCheckRequest, opts ...grpc.CallOption) (*HealthCheckResponse, error)
}
MaleniaServiceClient is the client API for MaleniaService 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 NewMaleniaServiceClient ¶
func NewMaleniaServiceClient(cc grpc.ClientConnInterface) MaleniaServiceClient
type MaleniaServiceServer ¶
type MaleniaServiceServer interface { HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error) // contains filtered or unexported methods }
MaleniaServiceServer is the server API for MaleniaService service. All implementations must embed UnimplementedMaleniaServiceServer for forward compatibility
type UnimplementedMaleniaServiceServer ¶
type UnimplementedMaleniaServiceServer struct { }
UnimplementedMaleniaServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMaleniaServiceServer) HealthCheck ¶
func (UnimplementedMaleniaServiceServer) HealthCheck(context.Context, *HealthCheckRequest) (*HealthCheckResponse, error)
type UnsafeMaleniaServiceServer ¶
type UnsafeMaleniaServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMaleniaServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MaleniaServiceServer will result in compilation errors.