Documentation ¶
Index ¶
- Variables
- type Checker
- type CheckerFunc
- type HealthReply
- func (*HealthReply) Descriptor() ([]byte, []int)deprecated
- func (x *HealthReply) GetComponents() map[string]Status
- func (x *HealthReply) GetStatus() Status
- func (*HealthReply) ProtoMessage()
- func (x *HealthReply) ProtoReflect() protoreflect.Message
- func (x *HealthReply) Reset()
- func (x *HealthReply) String() string
- type HealthRequest
- type HealthService
- type Server
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Status_name = map[int32]string{ 0: "UNKNOWN", 1: "UP", 2: "DOWN", } Status_value = map[string]int32{ "UNKNOWN": 0, "UP": 1, "DOWN": 2, } )
Enum value maps for Status.
View Source
var File_health_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CheckerFunc ¶
type CheckerFunc func() error
type HealthReply ¶
type HealthReply struct { Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=api.health.Status" json:"status,omitempty"` Components map[string]Status `` /* 185-byte string literal not displayed */ // contains filtered or unexported fields }
func (*HealthReply) Descriptor
deprecated
func (*HealthReply) Descriptor() ([]byte, []int)
Deprecated: Use HealthReply.ProtoReflect.Descriptor instead.
func (*HealthReply) GetComponents ¶
func (x *HealthReply) GetComponents() map[string]Status
func (*HealthReply) GetStatus ¶
func (x *HealthReply) GetStatus() Status
func (*HealthReply) ProtoMessage ¶
func (*HealthReply) ProtoMessage()
func (*HealthReply) ProtoReflect ¶
func (x *HealthReply) ProtoReflect() protoreflect.Message
func (*HealthReply) Reset ¶
func (x *HealthReply) Reset()
func (*HealthReply) String ¶
func (x *HealthReply) String() string
type HealthRequest ¶
type HealthRequest struct {
// contains filtered or unexported fields
}
func (*HealthRequest) Descriptor
deprecated
func (*HealthRequest) Descriptor() ([]byte, []int)
Deprecated: Use HealthRequest.ProtoReflect.Descriptor instead.
func (*HealthRequest) ProtoMessage ¶
func (*HealthRequest) ProtoMessage()
func (*HealthRequest) ProtoReflect ¶
func (x *HealthRequest) ProtoReflect() protoreflect.Message
func (*HealthRequest) Reset ¶
func (x *HealthRequest) Reset()
func (*HealthRequest) String ¶
func (x *HealthRequest) String() string
type HealthService ¶
type HealthService struct {
// contains filtered or unexported fields
}
HealthService is a health service.
func NewHealthService ¶
func NewHealthService(logger log.Logger, checkers []Checker) *HealthService
func (*HealthService) Health ¶
func (s *HealthService) Health(_ context.Context, _ *HealthRequest) (*HealthReply, error)
type Status ¶
type Status int32
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.