admin

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterHealthAgentServer

func RegisterHealthAgentServer(s *grpc.Server, srv HealthAgentServer)

Types

type HealthAgentClient

type HealthAgentClient interface {
	CheckHealth(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error)
}

HealthAgentClient is the client API for HealthAgent service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewHealthAgentClient

func NewHealthAgentClient(cc *grpc.ClientConn) HealthAgentClient

type HealthAgentServer

type HealthAgentServer interface {
	CheckHealth(context.Context, *HealthRequest) (*HealthResponse, error)
}

HealthAgentServer is the server API for HealthAgent service.

type HealthRequest

type HealthRequest struct {
	TimeoutSeconds       uint32   `protobuf:"varint,1,opt,name=timeoutSeconds,proto3" json:"timeoutSeconds,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HealthRequest) Descriptor

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

func (*HealthRequest) GetTimeoutSeconds

func (m *HealthRequest) GetTimeoutSeconds() uint32

func (*HealthRequest) ProtoMessage

func (*HealthRequest) ProtoMessage()

func (*HealthRequest) Reset

func (m *HealthRequest) Reset()

func (*HealthRequest) String

func (m *HealthRequest) String() string

func (*HealthRequest) XXX_DiscardUnknown

func (m *HealthRequest) XXX_DiscardUnknown()

func (*HealthRequest) XXX_Marshal

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

func (*HealthRequest) XXX_Merge

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

func (*HealthRequest) XXX_Size

func (m *HealthRequest) XXX_Size() int

func (*HealthRequest) XXX_Unmarshal

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

type HealthResponse

type HealthResponse struct {
	Result                  *wrappers.BoolValue `protobuf:"bytes,1,opt,name=Result,proto3" json:"Result,omitempty"`
	Error                   string              `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error,omitempty"`
	State                   common.HealthState  `protobuf:"varint,3,opt,name=State,proto3,enum=moc.HealthState" json:"State,omitempty"`
	CertificateNeedsRenewal *wrappers.BoolValue `protobuf:"bytes,4,opt,name=CertificateNeedsRenewal,proto3" json:"CertificateNeedsRenewal,omitempty"`
	XXX_NoUnkeyedLiteral    struct{}            `json:"-"`
	XXX_unrecognized        []byte              `json:"-"`
	XXX_sizecache           int32               `json:"-"`
}

func (*HealthResponse) Descriptor

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

func (*HealthResponse) GetCertificateNeedsRenewal

func (m *HealthResponse) GetCertificateNeedsRenewal() *wrappers.BoolValue

func (*HealthResponse) GetError

func (m *HealthResponse) GetError() string

func (*HealthResponse) GetResult

func (m *HealthResponse) GetResult() *wrappers.BoolValue

func (*HealthResponse) GetState

func (m *HealthResponse) GetState() common.HealthState

func (*HealthResponse) ProtoMessage

func (*HealthResponse) ProtoMessage()

func (*HealthResponse) Reset

func (m *HealthResponse) Reset()

func (*HealthResponse) String

func (m *HealthResponse) String() string

func (*HealthResponse) XXX_DiscardUnknown

func (m *HealthResponse) XXX_DiscardUnknown()

func (*HealthResponse) XXX_Marshal

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

func (*HealthResponse) XXX_Merge

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

func (*HealthResponse) XXX_Size

func (m *HealthResponse) XXX_Size() int

func (*HealthResponse) XXX_Unmarshal

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

type UnimplementedHealthAgentServer

type UnimplementedHealthAgentServer struct {
}

UnimplementedHealthAgentServer can be embedded to have forward compatible implementations.

func (*UnimplementedHealthAgentServer) CheckHealth

Jump to

Keyboard shortcuts

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