Documentation ¶
Index ¶
- Variables
- func RegisterReadyzServer(s grpc.ServiceRegistrar, srv ReadyzServer)
- type ComponentStatus
- func (*ComponentStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ComponentStatus) GetDetails() string
- func (x *ComponentStatus) GetReadyStatus() ReadyStatus
- func (*ComponentStatus) ProtoMessage()
- func (x *ComponentStatus) ProtoReflect() protoreflect.Message
- func (x *ComponentStatus) Reset()
- func (x *ComponentStatus) String() string
- type ReadyCheckRequest
- func (*ReadyCheckRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadyCheckRequest) GetHealthCheckRequest() *grpc_health_v1.HealthCheckRequest
- func (*ReadyCheckRequest) ProtoMessage()
- func (x *ReadyCheckRequest) ProtoReflect() protoreflect.Message
- func (x *ReadyCheckRequest) Reset()
- func (x *ReadyCheckRequest) String() string
- type ReadyCheckResponse
- func (*ReadyCheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadyCheckResponse) GetComponents() map[string]*ComponentStatus
- func (x *ReadyCheckResponse) GetHealthCheckResponse() *grpc_health_v1.HealthCheckResponse
- func (x *ReadyCheckResponse) GetReadyStatus() ReadyStatus
- func (*ReadyCheckResponse) ProtoMessage()
- func (x *ReadyCheckResponse) ProtoReflect() protoreflect.Message
- func (x *ReadyCheckResponse) Reset()
- func (x *ReadyCheckResponse) String() string
- type ReadyStatus
- func (ReadyStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ReadyStatus) Enum() *ReadyStatus
- func (ReadyStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReadyStatus) Number() protoreflect.EnumNumber
- func (x ReadyStatus) String() string
- func (ReadyStatus) Type() protoreflect.EnumType
- type ReadyzClient
- type ReadyzServer
- type UnimplementedReadyzServer
- type UnsafeReadyzServer
Constants ¶
This section is empty.
Variables ¶
var ( ReadyStatus_name = map[int32]string{ 0: "Unknown", 1: "Ready", 2: "NotReady", } ReadyStatus_value = map[string]int32{ "Unknown": 0, "Ready": 1, "NotReady": 2, } )
Enum value maps for ReadyStatus.
var File_cells_server_proto protoreflect.FileDescriptor
var Readyz_ServiceDesc = grpc.ServiceDesc{ ServiceName: "server.Readyz", HandlerType: (*ReadyzServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ready", Handler: _Readyz_Ready_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cells-server.proto", }
Readyz_ServiceDesc is the grpc.ServiceDesc for Readyz service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterReadyzServer ¶
func RegisterReadyzServer(s grpc.ServiceRegistrar, srv ReadyzServer)
Types ¶
type ComponentStatus ¶
type ComponentStatus struct { ReadyStatus ReadyStatus `protobuf:"varint,1,opt,name=ReadyStatus,proto3,enum=server.ReadyStatus" json:"ReadyStatus,omitempty"` Details string `protobuf:"bytes,2,opt,name=Details,proto3" json:"Details,omitempty"` // contains filtered or unexported fields }
func (*ComponentStatus) Descriptor
deprecated
func (*ComponentStatus) Descriptor() ([]byte, []int)
Deprecated: Use ComponentStatus.ProtoReflect.Descriptor instead.
func (*ComponentStatus) GetDetails ¶
func (x *ComponentStatus) GetDetails() string
func (*ComponentStatus) GetReadyStatus ¶
func (x *ComponentStatus) GetReadyStatus() ReadyStatus
func (*ComponentStatus) ProtoMessage ¶
func (*ComponentStatus) ProtoMessage()
func (*ComponentStatus) ProtoReflect ¶
func (x *ComponentStatus) ProtoReflect() protoreflect.Message
func (*ComponentStatus) Reset ¶
func (x *ComponentStatus) Reset()
func (*ComponentStatus) String ¶
func (x *ComponentStatus) String() string
type ReadyCheckRequest ¶
type ReadyCheckRequest struct { HealthCheckRequest *grpc_health_v1.HealthCheckRequest `protobuf:"bytes,1,opt,name=HealthCheckRequest,proto3" json:"HealthCheckRequest,omitempty"` // contains filtered or unexported fields }
func (*ReadyCheckRequest) Descriptor
deprecated
func (*ReadyCheckRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadyCheckRequest.ProtoReflect.Descriptor instead.
func (*ReadyCheckRequest) GetHealthCheckRequest ¶
func (x *ReadyCheckRequest) GetHealthCheckRequest() *grpc_health_v1.HealthCheckRequest
func (*ReadyCheckRequest) ProtoMessage ¶
func (*ReadyCheckRequest) ProtoMessage()
func (*ReadyCheckRequest) ProtoReflect ¶
func (x *ReadyCheckRequest) ProtoReflect() protoreflect.Message
func (*ReadyCheckRequest) Reset ¶
func (x *ReadyCheckRequest) Reset()
func (*ReadyCheckRequest) String ¶
func (x *ReadyCheckRequest) String() string
type ReadyCheckResponse ¶
type ReadyCheckResponse struct { HealthCheckResponse *grpc_health_v1.HealthCheckResponse `protobuf:"bytes,1,opt,name=HealthCheckResponse,proto3" json:"HealthCheckResponse,omitempty"` ReadyStatus ReadyStatus `protobuf:"varint,2,opt,name=ReadyStatus,proto3,enum=server.ReadyStatus" json:"ReadyStatus,omitempty"` Components map[string]*ComponentStatus `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ReadyCheckResponse) Descriptor
deprecated
func (*ReadyCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadyCheckResponse.ProtoReflect.Descriptor instead.
func (*ReadyCheckResponse) GetComponents ¶
func (x *ReadyCheckResponse) GetComponents() map[string]*ComponentStatus
func (*ReadyCheckResponse) GetHealthCheckResponse ¶
func (x *ReadyCheckResponse) GetHealthCheckResponse() *grpc_health_v1.HealthCheckResponse
func (*ReadyCheckResponse) GetReadyStatus ¶
func (x *ReadyCheckResponse) GetReadyStatus() ReadyStatus
func (*ReadyCheckResponse) ProtoMessage ¶
func (*ReadyCheckResponse) ProtoMessage()
func (*ReadyCheckResponse) ProtoReflect ¶
func (x *ReadyCheckResponse) ProtoReflect() protoreflect.Message
func (*ReadyCheckResponse) Reset ¶
func (x *ReadyCheckResponse) Reset()
func (*ReadyCheckResponse) String ¶
func (x *ReadyCheckResponse) String() string
type ReadyStatus ¶
type ReadyStatus int32
const ( ReadyStatus_Unknown ReadyStatus = 0 ReadyStatus_Ready ReadyStatus = 1 ReadyStatus_NotReady ReadyStatus = 2 )
func (ReadyStatus) Descriptor ¶
func (ReadyStatus) Descriptor() protoreflect.EnumDescriptor
func (ReadyStatus) Enum ¶
func (x ReadyStatus) Enum() *ReadyStatus
func (ReadyStatus) EnumDescriptor
deprecated
func (ReadyStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReadyStatus.Descriptor instead.
func (ReadyStatus) Number ¶
func (x ReadyStatus) Number() protoreflect.EnumNumber
func (ReadyStatus) String ¶
func (x ReadyStatus) String() string
func (ReadyStatus) Type ¶
func (ReadyStatus) Type() protoreflect.EnumType
type ReadyzClient ¶
type ReadyzClient interface {
Ready(ctx context.Context, in *ReadyCheckRequest, opts ...grpc.CallOption) (*ReadyCheckResponse, error)
}
ReadyzClient is the client API for Readyz 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 NewReadyzClient ¶
func NewReadyzClient(cc grpc.ClientConnInterface) ReadyzClient
type ReadyzServer ¶
type ReadyzServer interface { Ready(context.Context, *ReadyCheckRequest) (*ReadyCheckResponse, error) // contains filtered or unexported methods }
ReadyzServer is the server API for Readyz service. All implementations must embed UnimplementedReadyzServer for forward compatibility
func NewReadyzServer ¶
func NewReadyzServer(hs *health.Server) ReadyzServer
type UnimplementedReadyzServer ¶
type UnimplementedReadyzServer struct { }
UnimplementedReadyzServer must be embedded to have forward compatible implementations.
func (UnimplementedReadyzServer) Ready ¶
func (UnimplementedReadyzServer) Ready(context.Context, *ReadyCheckRequest) (*ReadyCheckResponse, error)
type UnsafeReadyzServer ¶
type UnsafeReadyzServer interface {
// contains filtered or unexported methods
}
UnsafeReadyzServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReadyzServer will result in compilation errors.