v5.4.10 Latest Latest

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 9 Imported by: 1




This section is empty.


View Source
var HealthStatus_HealthState_name = map[int32]string{
	0: "HEALTHY",
	2: "DYING",
View Source
var HealthStatus_HealthState_value = map[string]int32{
	"HEALTHY":    0,
	"DYING":      2,


func RegisterHealthServiceServer

func RegisterHealthServiceServer(s *grpc.Server, srv HealthServiceServer)


type HealthServiceClient

type HealthServiceClient interface {
	// Return current health status of a Voltha instance
	GetHealthStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*HealthStatus, error)

HealthServiceClient is the client API for HealthService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to

func NewHealthServiceClient

func NewHealthServiceClient(cc *grpc.ClientConn) HealthServiceClient

type HealthServiceServer

type HealthServiceServer interface {
	// Return current health status of a Voltha instance
	GetHealthStatus(context.Context, *empty.Empty) (*HealthStatus, error)

HealthServiceServer is the server API for HealthService service.

type HealthStatus

type HealthStatus struct {
	// Current state of health of this Voltha instance
	State                HealthStatus_HealthState `protobuf:"varint,1,opt,name=state,proto3,enum=health.HealthStatus_HealthState" json:"state,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`

Encode health status of a Voltha instance

func (*HealthStatus) Descriptor

func (*HealthStatus) Descriptor() ([]byte, []int)

func (*HealthStatus) GetState

func (m *HealthStatus) GetState() HealthStatus_HealthState

func (*HealthStatus) ProtoMessage

func (*HealthStatus) ProtoMessage()

func (*HealthStatus) Reset

func (m *HealthStatus) Reset()

func (*HealthStatus) String

func (m *HealthStatus) String() string

func (*HealthStatus) XXX_DiscardUnknown

func (m *HealthStatus) XXX_DiscardUnknown()

func (*HealthStatus) XXX_Marshal

func (m *HealthStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HealthStatus) XXX_Merge

func (m *HealthStatus) XXX_Merge(src proto.Message)

func (*HealthStatus) XXX_Size

func (m *HealthStatus) XXX_Size() int

func (*HealthStatus) XXX_Unmarshal

func (m *HealthStatus) XXX_Unmarshal(b []byte) error

type HealthStatus_HealthState

type HealthStatus_HealthState int32

Health states

const (
	HealthStatus_HEALTHY    HealthStatus_HealthState = 0
	HealthStatus_OVERLOADED HealthStatus_HealthState = 1
	HealthStatus_DYING      HealthStatus_HealthState = 2

func (HealthStatus_HealthState) EnumDescriptor

func (HealthStatus_HealthState) EnumDescriptor() ([]byte, []int)

func (HealthStatus_HealthState) String

func (x HealthStatus_HealthState) String() string

type UnimplementedHealthServiceServer

type UnimplementedHealthServiceServer struct {

UnimplementedHealthServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedHealthServiceServer) GetHealthStatus

Jump to

Keyboard shortcuts

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