Documentation
¶
Index ¶
- Variables
- func RegisterHealthServer(s *grpc.Server, srv HealthServer)
- type HealthCheck
- type HealthCheckResponse
- func (*HealthCheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HealthCheckResponse) GetMessages() []*HealthCheck
- func (*HealthCheckResponse) ProtoMessage()
- func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
- func (x *HealthCheckResponse) Reset()
- func (x *HealthCheckResponse) String() string
- type HealthCheck_ServingStatus
- func (HealthCheck_ServingStatus) Descriptor() protoreflect.EnumDescriptor
- func (x HealthCheck_ServingStatus) Enum() *HealthCheck_ServingStatus
- func (HealthCheck_ServingStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x HealthCheck_ServingStatus) Number() protoreflect.EnumNumber
- func (x HealthCheck_ServingStatus) String() string
- func (HealthCheck_ServingStatus) Type() protoreflect.EnumType
- type HealthClient
- type HealthServer
- type HealthWatchRequest
- func (*HealthWatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HealthWatchRequest) GetIntervalSeconds() int64
- func (*HealthWatchRequest) ProtoMessage()
- func (x *HealthWatchRequest) ProtoReflect() protoreflect.Message
- func (x *HealthWatchRequest) Reset()
- func (x *HealthWatchRequest) String() string
- type Health_WatchClient
- type Health_WatchServer
- type ReadyCheck
- type ReadyCheckResponse
- func (*ReadyCheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadyCheckResponse) GetMessages() []*ReadyCheck
- func (*ReadyCheckResponse) ProtoMessage()
- func (x *ReadyCheckResponse) ProtoReflect() protoreflect.Message
- func (x *ReadyCheckResponse) Reset()
- func (x *ReadyCheckResponse) String() string
- type ReadyCheck_ReadyStatus
- func (ReadyCheck_ReadyStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ReadyCheck_ReadyStatus) Enum() *ReadyCheck_ReadyStatus
- func (ReadyCheck_ReadyStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ReadyCheck_ReadyStatus) Number() protoreflect.EnumNumber
- func (x ReadyCheck_ReadyStatus) String() string
- func (ReadyCheck_ReadyStatus) Type() protoreflect.EnumType
- type UnimplementedHealthServer
Constants ¶
This section is empty.
Variables ¶
var ( HealthCheck_ServingStatus_name = map[int32]string{ 0: "UNKNOWN", 1: "SERVING", 2: "NOT_SERVING", } HealthCheck_ServingStatus_value = map[string]int32{ "UNKNOWN": 0, "SERVING": 1, "NOT_SERVING": 2, } )
Enum value maps for HealthCheck_ServingStatus.
var ( ReadyCheck_ReadyStatus_name = map[int32]string{ 0: "UNKNOWN", 1: "READY", 2: "NOT_READY", } ReadyCheck_ReadyStatus_value = map[string]int32{ "UNKNOWN": 0, "READY": 1, "NOT_READY": 2, } )
Enum value maps for ReadyCheck_ReadyStatus.
var File_health_health_proto protoreflect.FileDescriptor
Functions ¶
func RegisterHealthServer ¶
func RegisterHealthServer(s *grpc.Server, srv HealthServer)
Types ¶
type HealthCheck ¶
type HealthCheck struct { Status HealthCheck_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=health.HealthCheck_ServingStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*HealthCheck) Descriptor
deprecated
func (*HealthCheck) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheck.ProtoReflect.Descriptor instead.
func (*HealthCheck) GetStatus ¶
func (x *HealthCheck) GetStatus() HealthCheck_ServingStatus
func (*HealthCheck) ProtoMessage ¶
func (*HealthCheck) ProtoMessage()
func (*HealthCheck) ProtoReflect ¶ added in v0.6.0
func (x *HealthCheck) ProtoReflect() protoreflect.Message
func (*HealthCheck) Reset ¶
func (x *HealthCheck) Reset()
func (*HealthCheck) String ¶
func (x *HealthCheck) String() string
type HealthCheckResponse ¶
type HealthCheckResponse struct { Messages []*HealthCheck `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*HealthCheckResponse) Descriptor
deprecated
func (*HealthCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheckResponse.ProtoReflect.Descriptor instead.
func (*HealthCheckResponse) GetMessages ¶
func (x *HealthCheckResponse) GetMessages() []*HealthCheck
func (*HealthCheckResponse) ProtoMessage ¶
func (*HealthCheckResponse) ProtoMessage()
func (*HealthCheckResponse) ProtoReflect ¶ added in v0.6.0
func (x *HealthCheckResponse) ProtoReflect() protoreflect.Message
func (*HealthCheckResponse) Reset ¶
func (x *HealthCheckResponse) Reset()
func (*HealthCheckResponse) String ¶
func (x *HealthCheckResponse) String() string
type HealthCheck_ServingStatus ¶
type HealthCheck_ServingStatus int32
const ( HealthCheck_UNKNOWN HealthCheck_ServingStatus = 0 HealthCheck_SERVING HealthCheck_ServingStatus = 1 HealthCheck_NOT_SERVING HealthCheck_ServingStatus = 2 )
func (HealthCheck_ServingStatus) Descriptor ¶ added in v0.6.0
func (HealthCheck_ServingStatus) Descriptor() protoreflect.EnumDescriptor
func (HealthCheck_ServingStatus) Enum ¶ added in v0.6.0
func (x HealthCheck_ServingStatus) Enum() *HealthCheck_ServingStatus
func (HealthCheck_ServingStatus) EnumDescriptor
deprecated
func (HealthCheck_ServingStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use HealthCheck_ServingStatus.Descriptor instead.
func (HealthCheck_ServingStatus) Number ¶ added in v0.6.0
func (x HealthCheck_ServingStatus) Number() protoreflect.EnumNumber
func (HealthCheck_ServingStatus) String ¶
func (x HealthCheck_ServingStatus) String() string
func (HealthCheck_ServingStatus) Type ¶ added in v0.6.0
func (HealthCheck_ServingStatus) Type() protoreflect.EnumType
type HealthClient ¶
type HealthClient interface { Check(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error) Watch(ctx context.Context, in *HealthWatchRequest, opts ...grpc.CallOption) (Health_WatchClient, error) Ready(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ReadyCheckResponse, error) }
HealthClient is the client API for Health service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHealthClient ¶
func NewHealthClient(cc grpc.ClientConnInterface) HealthClient
type HealthServer ¶
type HealthServer interface { Check(context.Context, *empty.Empty) (*HealthCheckResponse, error) Watch(*HealthWatchRequest, Health_WatchServer) error Ready(context.Context, *empty.Empty) (*ReadyCheckResponse, error) }
HealthServer is the server API for Health service.
type HealthWatchRequest ¶
type HealthWatchRequest struct { IntervalSeconds int64 `protobuf:"varint,1,opt,name=interval_seconds,json=intervalSeconds,proto3" json:"interval_seconds,omitempty"` // contains filtered or unexported fields }
func (*HealthWatchRequest) Descriptor
deprecated
func (*HealthWatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use HealthWatchRequest.ProtoReflect.Descriptor instead.
func (*HealthWatchRequest) GetIntervalSeconds ¶
func (x *HealthWatchRequest) GetIntervalSeconds() int64
func (*HealthWatchRequest) ProtoMessage ¶
func (*HealthWatchRequest) ProtoMessage()
func (*HealthWatchRequest) ProtoReflect ¶ added in v0.6.0
func (x *HealthWatchRequest) ProtoReflect() protoreflect.Message
func (*HealthWatchRequest) Reset ¶
func (x *HealthWatchRequest) Reset()
func (*HealthWatchRequest) String ¶
func (x *HealthWatchRequest) String() string
type Health_WatchClient ¶
type Health_WatchClient interface { Recv() (*HealthCheckResponse, error) grpc.ClientStream }
type Health_WatchServer ¶
type Health_WatchServer interface { Send(*HealthCheckResponse) error grpc.ServerStream }
type ReadyCheck ¶
type ReadyCheck struct { Status ReadyCheck_ReadyStatus `protobuf:"varint,1,opt,name=status,proto3,enum=health.ReadyCheck_ReadyStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*ReadyCheck) Descriptor
deprecated
func (*ReadyCheck) Descriptor() ([]byte, []int)
Deprecated: Use ReadyCheck.ProtoReflect.Descriptor instead.
func (*ReadyCheck) GetStatus ¶
func (x *ReadyCheck) GetStatus() ReadyCheck_ReadyStatus
func (*ReadyCheck) ProtoMessage ¶
func (*ReadyCheck) ProtoMessage()
func (*ReadyCheck) ProtoReflect ¶ added in v0.6.0
func (x *ReadyCheck) ProtoReflect() protoreflect.Message
func (*ReadyCheck) Reset ¶
func (x *ReadyCheck) Reset()
func (*ReadyCheck) String ¶
func (x *ReadyCheck) String() string
type ReadyCheckResponse ¶
type ReadyCheckResponse struct { Messages []*ReadyCheck `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"` // contains filtered or unexported fields }
func (*ReadyCheckResponse) Descriptor
deprecated
func (*ReadyCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadyCheckResponse.ProtoReflect.Descriptor instead.
func (*ReadyCheckResponse) GetMessages ¶
func (x *ReadyCheckResponse) GetMessages() []*ReadyCheck
func (*ReadyCheckResponse) ProtoMessage ¶
func (*ReadyCheckResponse) ProtoMessage()
func (*ReadyCheckResponse) ProtoReflect ¶ added in v0.6.0
func (x *ReadyCheckResponse) ProtoReflect() protoreflect.Message
func (*ReadyCheckResponse) Reset ¶
func (x *ReadyCheckResponse) Reset()
func (*ReadyCheckResponse) String ¶
func (x *ReadyCheckResponse) String() string
type ReadyCheck_ReadyStatus ¶
type ReadyCheck_ReadyStatus int32
const ( ReadyCheck_UNKNOWN ReadyCheck_ReadyStatus = 0 ReadyCheck_READY ReadyCheck_ReadyStatus = 1 ReadyCheck_NOT_READY ReadyCheck_ReadyStatus = 2 )
func (ReadyCheck_ReadyStatus) Descriptor ¶ added in v0.6.0
func (ReadyCheck_ReadyStatus) Descriptor() protoreflect.EnumDescriptor
func (ReadyCheck_ReadyStatus) Enum ¶ added in v0.6.0
func (x ReadyCheck_ReadyStatus) Enum() *ReadyCheck_ReadyStatus
func (ReadyCheck_ReadyStatus) EnumDescriptor
deprecated
func (ReadyCheck_ReadyStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReadyCheck_ReadyStatus.Descriptor instead.
func (ReadyCheck_ReadyStatus) Number ¶ added in v0.6.0
func (x ReadyCheck_ReadyStatus) Number() protoreflect.EnumNumber
func (ReadyCheck_ReadyStatus) String ¶
func (x ReadyCheck_ReadyStatus) String() string
func (ReadyCheck_ReadyStatus) Type ¶ added in v0.6.0
func (ReadyCheck_ReadyStatus) Type() protoreflect.EnumType
type UnimplementedHealthServer ¶ added in v0.6.0
type UnimplementedHealthServer struct { }
UnimplementedHealthServer can be embedded to have forward compatible implementations.
func (*UnimplementedHealthServer) Check ¶ added in v0.6.0
func (*UnimplementedHealthServer) Check(context.Context, *empty.Empty) (*HealthCheckResponse, error)
func (*UnimplementedHealthServer) Ready ¶ added in v0.6.0
func (*UnimplementedHealthServer) Ready(context.Context, *empty.Empty) (*ReadyCheckResponse, error)
func (*UnimplementedHealthServer) Watch ¶ added in v0.6.0
func (*UnimplementedHealthServer) Watch(*HealthWatchRequest, Health_WatchServer) error