777 lines
24 KiB
Go
777 lines
24 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.21.12
|
|
// source: proto/healthchecker.proto
|
|
|
|
package grpcapi
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type ListVIPsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListVIPsRequest) Reset() {
|
|
*x = ListVIPsRequest{}
|
|
mi := &file_proto_healthchecker_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListVIPsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListVIPsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListVIPsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_healthchecker_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListVIPsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListVIPsRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_healthchecker_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type GetVIPRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
VipName string `protobuf:"bytes,1,opt,name=vip_name,json=vipName,proto3" json:"vip_name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetVIPRequest) Reset() {
|
|
*x = GetVIPRequest{}
|
|
mi := &file_proto_healthchecker_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetVIPRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetVIPRequest) ProtoMessage() {}
|
|
|
|
func (x *GetVIPRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_healthchecker_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetVIPRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetVIPRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_healthchecker_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *GetVIPRequest) GetVipName() string {
|
|
if x != nil {
|
|
return x.VipName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListBackendsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
VipName string `protobuf:"bytes,1,opt,name=vip_name,json=vipName,proto3" json:"vip_name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListBackendsRequest) Reset() {
|
|
*x = ListBackendsRequest{}
|
|
mi := &file_proto_healthchecker_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListBackendsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListBackendsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListBackendsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_healthchecker_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListBackendsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListBackendsRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_healthchecker_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ListBackendsRequest) GetVipName() string {
|
|
if x != nil {
|
|
return x.VipName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type GetBackendRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
VipName string `protobuf:"bytes,1,opt,name=vip_name,json=vipName,proto3" json:"vip_name,omitempty"`
|
|
BackendAddress string `protobuf:"bytes,2,opt,name=backend_address,json=backendAddress,proto3" json:"backend_address,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetBackendRequest) Reset() {
|
|
*x = GetBackendRequest{}
|
|
mi := &file_proto_healthchecker_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetBackendRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetBackendRequest) ProtoMessage() {}
|
|
|
|
func (x *GetBackendRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_healthchecker_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetBackendRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetBackendRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_healthchecker_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *GetBackendRequest) GetVipName() string {
|
|
if x != nil {
|
|
return x.VipName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetBackendRequest) GetBackendAddress() string {
|
|
if x != nil {
|
|
return x.BackendAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PauseResumeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
VipName string `protobuf:"bytes,1,opt,name=vip_name,json=vipName,proto3" json:"vip_name,omitempty"`
|
|
BackendAddress string `protobuf:"bytes,2,opt,name=backend_address,json=backendAddress,proto3" json:"backend_address,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PauseResumeRequest) Reset() {
|
|
*x = PauseResumeRequest{}
|
|
mi := &file_proto_healthchecker_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PauseResumeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PauseResumeRequest) ProtoMessage() {}
|
|
|
|
func (x *PauseResumeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_healthchecker_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PauseResumeRequest.ProtoReflect.Descriptor instead.
|
|
func (*PauseResumeRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_healthchecker_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *PauseResumeRequest) GetVipName() string {
|
|
if x != nil {
|
|
return x.VipName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PauseResumeRequest) GetBackendAddress() string {
|
|
if x != nil {
|
|
return x.BackendAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type WatchRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *WatchRequest) Reset() {
|
|
*x = WatchRequest{}
|
|
mi := &file_proto_healthchecker_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *WatchRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*WatchRequest) ProtoMessage() {}
|
|
|
|
func (x *WatchRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_healthchecker_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.
|
|
func (*WatchRequest) Descriptor() ([]byte, []int) {
|
|
return file_proto_healthchecker_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
type ListVIPsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
VipNames []string `protobuf:"bytes,1,rep,name=vip_names,json=vipNames,proto3" json:"vip_names,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListVIPsResponse) Reset() {
|
|
*x = ListVIPsResponse{}
|
|
mi := &file_proto_healthchecker_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListVIPsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListVIPsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListVIPsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_healthchecker_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListVIPsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListVIPsResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_healthchecker_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ListVIPsResponse) GetVipNames() []string {
|
|
if x != nil {
|
|
return x.VipNames
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type VIPInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
|
Protocol string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"`
|
|
Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
|
|
Backends []string `protobuf:"bytes,5,rep,name=backends,proto3" json:"backends,omitempty"`
|
|
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VIPInfo) Reset() {
|
|
*x = VIPInfo{}
|
|
mi := &file_proto_healthchecker_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VIPInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VIPInfo) ProtoMessage() {}
|
|
|
|
func (x *VIPInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_healthchecker_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use VIPInfo.ProtoReflect.Descriptor instead.
|
|
func (*VIPInfo) Descriptor() ([]byte, []int) {
|
|
return file_proto_healthchecker_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *VIPInfo) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VIPInfo) GetAddress() string {
|
|
if x != nil {
|
|
return x.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VIPInfo) GetProtocol() string {
|
|
if x != nil {
|
|
return x.Protocol
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VIPInfo) GetPort() uint32 {
|
|
if x != nil {
|
|
return x.Port
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *VIPInfo) GetBackends() []string {
|
|
if x != nil {
|
|
return x.Backends
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *VIPInfo) GetDescription() string {
|
|
if x != nil {
|
|
return x.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListBackendsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Backends []*BackendInfo `protobuf:"bytes,1,rep,name=backends,proto3" json:"backends,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListBackendsResponse) Reset() {
|
|
*x = ListBackendsResponse{}
|
|
mi := &file_proto_healthchecker_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListBackendsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListBackendsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListBackendsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_healthchecker_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListBackendsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListBackendsResponse) Descriptor() ([]byte, []int) {
|
|
return file_proto_healthchecker_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *ListBackendsResponse) GetBackends() []*BackendInfo {
|
|
if x != nil {
|
|
return x.Backends
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type BackendInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
VipName string `protobuf:"bytes,1,opt,name=vip_name,json=vipName,proto3" json:"vip_name,omitempty"`
|
|
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
|
State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
|
|
Transitions []*TransitionRecord `protobuf:"bytes,4,rep,name=transitions,proto3" json:"transitions,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *BackendInfo) Reset() {
|
|
*x = BackendInfo{}
|
|
mi := &file_proto_healthchecker_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *BackendInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*BackendInfo) ProtoMessage() {}
|
|
|
|
func (x *BackendInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_healthchecker_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use BackendInfo.ProtoReflect.Descriptor instead.
|
|
func (*BackendInfo) Descriptor() ([]byte, []int) {
|
|
return file_proto_healthchecker_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *BackendInfo) GetVipName() string {
|
|
if x != nil {
|
|
return x.VipName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *BackendInfo) GetAddress() string {
|
|
if x != nil {
|
|
return x.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *BackendInfo) GetState() string {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *BackendInfo) GetTransitions() []*TransitionRecord {
|
|
if x != nil {
|
|
return x.Transitions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TransitionRecord struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
|
|
To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
|
|
AtUnixNs int64 `protobuf:"varint,3,opt,name=at_unix_ns,json=atUnixNs,proto3" json:"at_unix_ns,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitionRecord) Reset() {
|
|
*x = TransitionRecord{}
|
|
mi := &file_proto_healthchecker_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitionRecord) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitionRecord) ProtoMessage() {}
|
|
|
|
func (x *TransitionRecord) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_healthchecker_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitionRecord.ProtoReflect.Descriptor instead.
|
|
func (*TransitionRecord) Descriptor() ([]byte, []int) {
|
|
return file_proto_healthchecker_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *TransitionRecord) GetFrom() string {
|
|
if x != nil {
|
|
return x.From
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitionRecord) GetTo() string {
|
|
if x != nil {
|
|
return x.To
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitionRecord) GetAtUnixNs() int64 {
|
|
if x != nil {
|
|
return x.AtUnixNs
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TransitionEvent struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
VipName string `protobuf:"bytes,1,opt,name=vip_name,json=vipName,proto3" json:"vip_name,omitempty"`
|
|
BackendAddress string `protobuf:"bytes,2,opt,name=backend_address,json=backendAddress,proto3" json:"backend_address,omitempty"`
|
|
Transition *TransitionRecord `protobuf:"bytes,3,opt,name=transition,proto3" json:"transition,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TransitionEvent) Reset() {
|
|
*x = TransitionEvent{}
|
|
mi := &file_proto_healthchecker_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TransitionEvent) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TransitionEvent) ProtoMessage() {}
|
|
|
|
func (x *TransitionEvent) ProtoReflect() protoreflect.Message {
|
|
mi := &file_proto_healthchecker_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use TransitionEvent.ProtoReflect.Descriptor instead.
|
|
func (*TransitionEvent) Descriptor() ([]byte, []int) {
|
|
return file_proto_healthchecker_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *TransitionEvent) GetVipName() string {
|
|
if x != nil {
|
|
return x.VipName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitionEvent) GetBackendAddress() string {
|
|
if x != nil {
|
|
return x.BackendAddress
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *TransitionEvent) GetTransition() *TransitionRecord {
|
|
if x != nil {
|
|
return x.Transition
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_proto_healthchecker_proto protoreflect.FileDescriptor
|
|
|
|
const file_proto_healthchecker_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x19proto/healthchecker.proto\x12\rhealthchecker\"\x11\n" +
|
|
"\x0fListVIPsRequest\"*\n" +
|
|
"\rGetVIPRequest\x12\x19\n" +
|
|
"\bvip_name\x18\x01 \x01(\tR\avipName\"0\n" +
|
|
"\x13ListBackendsRequest\x12\x19\n" +
|
|
"\bvip_name\x18\x01 \x01(\tR\avipName\"W\n" +
|
|
"\x11GetBackendRequest\x12\x19\n" +
|
|
"\bvip_name\x18\x01 \x01(\tR\avipName\x12'\n" +
|
|
"\x0fbackend_address\x18\x02 \x01(\tR\x0ebackendAddress\"X\n" +
|
|
"\x12PauseResumeRequest\x12\x19\n" +
|
|
"\bvip_name\x18\x01 \x01(\tR\avipName\x12'\n" +
|
|
"\x0fbackend_address\x18\x02 \x01(\tR\x0ebackendAddress\"\x0e\n" +
|
|
"\fWatchRequest\"/\n" +
|
|
"\x10ListVIPsResponse\x12\x1b\n" +
|
|
"\tvip_names\x18\x01 \x03(\tR\bvipNames\"\xa5\x01\n" +
|
|
"\aVIPInfo\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" +
|
|
"\aaddress\x18\x02 \x01(\tR\aaddress\x12\x1a\n" +
|
|
"\bprotocol\x18\x03 \x01(\tR\bprotocol\x12\x12\n" +
|
|
"\x04port\x18\x04 \x01(\rR\x04port\x12\x1a\n" +
|
|
"\bbackends\x18\x05 \x03(\tR\bbackends\x12 \n" +
|
|
"\vdescription\x18\x06 \x01(\tR\vdescription\"N\n" +
|
|
"\x14ListBackendsResponse\x126\n" +
|
|
"\bbackends\x18\x01 \x03(\v2\x1a.healthchecker.BackendInfoR\bbackends\"\x9b\x01\n" +
|
|
"\vBackendInfo\x12\x19\n" +
|
|
"\bvip_name\x18\x01 \x01(\tR\avipName\x12\x18\n" +
|
|
"\aaddress\x18\x02 \x01(\tR\aaddress\x12\x14\n" +
|
|
"\x05state\x18\x03 \x01(\tR\x05state\x12A\n" +
|
|
"\vtransitions\x18\x04 \x03(\v2\x1f.healthchecker.TransitionRecordR\vtransitions\"T\n" +
|
|
"\x10TransitionRecord\x12\x12\n" +
|
|
"\x04from\x18\x01 \x01(\tR\x04from\x12\x0e\n" +
|
|
"\x02to\x18\x02 \x01(\tR\x02to\x12\x1c\n" +
|
|
"\n" +
|
|
"at_unix_ns\x18\x03 \x01(\x03R\batUnixNs\"\x96\x01\n" +
|
|
"\x0fTransitionEvent\x12\x19\n" +
|
|
"\bvip_name\x18\x01 \x01(\tR\avipName\x12'\n" +
|
|
"\x0fbackend_address\x18\x02 \x01(\tR\x0ebackendAddress\x12?\n" +
|
|
"\n" +
|
|
"transition\x18\x03 \x01(\v2\x1f.healthchecker.TransitionRecordR\n" +
|
|
"transition2\xb3\x04\n" +
|
|
"\rHealthChecker\x12K\n" +
|
|
"\bListVIPs\x12\x1e.healthchecker.ListVIPsRequest\x1a\x1f.healthchecker.ListVIPsResponse\x12>\n" +
|
|
"\x06GetVIP\x12\x1c.healthchecker.GetVIPRequest\x1a\x16.healthchecker.VIPInfo\x12W\n" +
|
|
"\fListBackends\x12\".healthchecker.ListBackendsRequest\x1a#.healthchecker.ListBackendsResponse\x12J\n" +
|
|
"\n" +
|
|
"GetBackend\x12 .healthchecker.GetBackendRequest\x1a\x1a.healthchecker.BackendInfo\x12M\n" +
|
|
"\fPauseBackend\x12!.healthchecker.PauseResumeRequest\x1a\x1a.healthchecker.BackendInfo\x12N\n" +
|
|
"\rResumeBackend\x12!.healthchecker.PauseResumeRequest\x1a\x1a.healthchecker.BackendInfo\x12Q\n" +
|
|
"\x10WatchTransitions\x12\x1b.healthchecker.WatchRequest\x1a\x1e.healthchecker.TransitionEvent0\x01B.Z,git.ipng.ch/ipng/vpp-maglev/internal/grpcapib\x06proto3"
|
|
|
|
var (
|
|
file_proto_healthchecker_proto_rawDescOnce sync.Once
|
|
file_proto_healthchecker_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_proto_healthchecker_proto_rawDescGZIP() []byte {
|
|
file_proto_healthchecker_proto_rawDescOnce.Do(func() {
|
|
file_proto_healthchecker_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_healthchecker_proto_rawDesc), len(file_proto_healthchecker_proto_rawDesc)))
|
|
})
|
|
return file_proto_healthchecker_proto_rawDescData
|
|
}
|
|
|
|
var file_proto_healthchecker_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
|
var file_proto_healthchecker_proto_goTypes = []any{
|
|
(*ListVIPsRequest)(nil), // 0: healthchecker.ListVIPsRequest
|
|
(*GetVIPRequest)(nil), // 1: healthchecker.GetVIPRequest
|
|
(*ListBackendsRequest)(nil), // 2: healthchecker.ListBackendsRequest
|
|
(*GetBackendRequest)(nil), // 3: healthchecker.GetBackendRequest
|
|
(*PauseResumeRequest)(nil), // 4: healthchecker.PauseResumeRequest
|
|
(*WatchRequest)(nil), // 5: healthchecker.WatchRequest
|
|
(*ListVIPsResponse)(nil), // 6: healthchecker.ListVIPsResponse
|
|
(*VIPInfo)(nil), // 7: healthchecker.VIPInfo
|
|
(*ListBackendsResponse)(nil), // 8: healthchecker.ListBackendsResponse
|
|
(*BackendInfo)(nil), // 9: healthchecker.BackendInfo
|
|
(*TransitionRecord)(nil), // 10: healthchecker.TransitionRecord
|
|
(*TransitionEvent)(nil), // 11: healthchecker.TransitionEvent
|
|
}
|
|
var file_proto_healthchecker_proto_depIdxs = []int32{
|
|
9, // 0: healthchecker.ListBackendsResponse.backends:type_name -> healthchecker.BackendInfo
|
|
10, // 1: healthchecker.BackendInfo.transitions:type_name -> healthchecker.TransitionRecord
|
|
10, // 2: healthchecker.TransitionEvent.transition:type_name -> healthchecker.TransitionRecord
|
|
0, // 3: healthchecker.HealthChecker.ListVIPs:input_type -> healthchecker.ListVIPsRequest
|
|
1, // 4: healthchecker.HealthChecker.GetVIP:input_type -> healthchecker.GetVIPRequest
|
|
2, // 5: healthchecker.HealthChecker.ListBackends:input_type -> healthchecker.ListBackendsRequest
|
|
3, // 6: healthchecker.HealthChecker.GetBackend:input_type -> healthchecker.GetBackendRequest
|
|
4, // 7: healthchecker.HealthChecker.PauseBackend:input_type -> healthchecker.PauseResumeRequest
|
|
4, // 8: healthchecker.HealthChecker.ResumeBackend:input_type -> healthchecker.PauseResumeRequest
|
|
5, // 9: healthchecker.HealthChecker.WatchTransitions:input_type -> healthchecker.WatchRequest
|
|
6, // 10: healthchecker.HealthChecker.ListVIPs:output_type -> healthchecker.ListVIPsResponse
|
|
7, // 11: healthchecker.HealthChecker.GetVIP:output_type -> healthchecker.VIPInfo
|
|
8, // 12: healthchecker.HealthChecker.ListBackends:output_type -> healthchecker.ListBackendsResponse
|
|
9, // 13: healthchecker.HealthChecker.GetBackend:output_type -> healthchecker.BackendInfo
|
|
9, // 14: healthchecker.HealthChecker.PauseBackend:output_type -> healthchecker.BackendInfo
|
|
9, // 15: healthchecker.HealthChecker.ResumeBackend:output_type -> healthchecker.BackendInfo
|
|
11, // 16: healthchecker.HealthChecker.WatchTransitions:output_type -> healthchecker.TransitionEvent
|
|
10, // [10:17] is the sub-list for method output_type
|
|
3, // [3:10] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_proto_healthchecker_proto_init() }
|
|
func file_proto_healthchecker_proto_init() {
|
|
if File_proto_healthchecker_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_healthchecker_proto_rawDesc), len(file_proto_healthchecker_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 12,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_proto_healthchecker_proto_goTypes,
|
|
DependencyIndexes: file_proto_healthchecker_proto_depIdxs,
|
|
MessageInfos: file_proto_healthchecker_proto_msgTypes,
|
|
}.Build()
|
|
File_proto_healthchecker_proto = out.File
|
|
file_proto_healthchecker_proto_goTypes = nil
|
|
file_proto_healthchecker_proto_depIdxs = nil
|
|
}
|