health

package
v0.0.0-...-8f485f0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package voltha is a generated protocol buffer package.

It is generated from these files:

health.proto

It has these top-level messages:

HealthStatus

Index

Constants

This section is empty.

Variables

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

Functions

func RegisterHealthServiceServer

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

Types

type HealthServiceClient

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

func NewHealthServiceClient

func NewHealthServiceClient(cc *grpc.ClientConn) HealthServiceClient

type HealthServiceServer

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

type HealthStatus

type HealthStatus struct {
	// Current state of health of this Voltha instance
	State HealthStatus_HealthState `protobuf:"varint,1,opt,name=state,enum=voltha.HealthStatus_HealthState" json:"state,omitempty"`
}

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

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

Jump to

Keyboard shortcuts

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