server

package
v5.0.0-...-0681bf2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_cells_server_proto protoreflect.FileDescriptor
View Source
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) 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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL