Documentation ¶
Index ¶
- Variables
- type Backend
- func (*Backend) Descriptor() ([]byte, []int)deprecated
- func (x *Backend) GetFrontend() string
- func (x *Backend) GetStrategy() Strategy
- func (x *Backend) GetUuid() string
- func (*Backend) ProtoMessage()
- func (x *Backend) ProtoReflect() protoreflect.Message
- func (x *Backend) Reset()
- func (x *Backend) String() string
- type BackendRoute
- func (*BackendRoute) Descriptor() ([]byte, []int)deprecated
- func (x *BackendRoute) GetRoute() string
- func (x *BackendRoute) GetSessions() int32
- func (x *BackendRoute) GetTotalSessions() int64
- func (*BackendRoute) ProtoMessage()
- func (x *BackendRoute) ProtoReflect() protoreflect.Message
- func (x *BackendRoute) Reset()
- func (x *BackendRoute) String() string
- type Client
- func (*Client) Descriptor() ([]byte, []int)deprecated
- func (x *Client) GetCreatedAt() *timestamppb.Timestamp
- func (x *Client) GetKey() string
- func (x *Client) GetName() string
- func (x *Client) GetUuid() string
- func (*Client) ProtoMessage()
- func (x *Client) ProtoReflect() protoreflect.Message
- func (x *Client) Reset()
- func (x *Client) String() string
- type Frontend
- func (*Frontend) Descriptor() ([]byte, []int)deprecated
- func (x *Frontend) GetAccessKey() string
- func (x *Frontend) GetActive() bool
- func (x *Frontend) GetClientId() string
- func (x *Frontend) GetRouteTimeoutSec() int32
- func (x *Frontend) GetRoutes() []*FrontendRoute
- func (x *Frontend) GetStrategy() Strategy
- func (x *Frontend) GetUuid() string
- func (*Frontend) ProtoMessage()
- func (x *Frontend) ProtoReflect() protoreflect.Message
- func (x *Frontend) Reset()
- func (x *Frontend) String() string
- type FrontendRoute
- func (*FrontendRoute) Descriptor() ([]byte, []int)deprecated
- func (x *FrontendRoute) GetCapacity() int32
- func (x *FrontendRoute) GetDest() string
- func (*FrontendRoute) ProtoMessage()
- func (x *FrontendRoute) ProtoReflect() protoreflect.Message
- func (x *FrontendRoute) Reset()
- func (x *FrontendRoute) String() string
- type FrontendTLSData
- func (*FrontendTLSData) Descriptor() ([]byte, []int)deprecated
- func (x *FrontendTLSData) GetCertificate() string
- func (x *FrontendTLSData) GetKey() string
- func (*FrontendTLSData) ProtoMessage()
- func (x *FrontendTLSData) ProtoReflect() protoreflect.Message
- func (x *FrontendTLSData) Reset()
- func (x *FrontendTLSData) String() string
- type Strategy
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Strategy_name = map[int32]string{ 0: "RoundRobin", 1: "LeastConn", } Strategy_value = map[string]int32{ "RoundRobin": 0, "LeastConn": 1, } )
Enum value maps for Strategy.
View Source
var File_data_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Frontend string `protobuf:"bytes,2,opt,name=frontend,proto3" json:"frontend,omitempty"` Strategy Strategy `protobuf:"varint,3,opt,name=strategy,proto3,enum=github.com.xdire.xlb.v1.Strategy" json:"strategy,omitempty"` // contains filtered or unexported fields }
func (*Backend) Descriptor
deprecated
func (*Backend) GetFrontend ¶
func (*Backend) GetStrategy ¶
func (*Backend) ProtoMessage ¶
func (*Backend) ProtoMessage()
func (*Backend) ProtoReflect ¶
func (x *Backend) ProtoReflect() protoreflect.Message
type BackendRoute ¶
type BackendRoute struct { Route string `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"` Sessions int32 `protobuf:"varint,2,opt,name=sessions,proto3" json:"sessions,omitempty"` TotalSessions int64 `protobuf:"varint,5,opt,name=totalSessions,proto3" json:"totalSessions,omitempty"` // contains filtered or unexported fields }
func (*BackendRoute) Descriptor
deprecated
func (*BackendRoute) Descriptor() ([]byte, []int)
Deprecated: Use BackendRoute.ProtoReflect.Descriptor instead.
func (*BackendRoute) GetRoute ¶
func (x *BackendRoute) GetRoute() string
func (*BackendRoute) GetSessions ¶
func (x *BackendRoute) GetSessions() int32
func (*BackendRoute) GetTotalSessions ¶
func (x *BackendRoute) GetTotalSessions() int64
func (*BackendRoute) ProtoMessage ¶
func (*BackendRoute) ProtoMessage()
func (*BackendRoute) ProtoReflect ¶
func (x *BackendRoute) ProtoReflect() protoreflect.Message
func (*BackendRoute) Reset ¶
func (x *BackendRoute) Reset()
func (*BackendRoute) String ¶
func (x *BackendRoute) String() string
type Client ¶
type Client struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // contains filtered or unexported fields }
func (*Client) Descriptor
deprecated
func (*Client) GetCreatedAt ¶
func (x *Client) GetCreatedAt() *timestamppb.Timestamp
func (*Client) ProtoMessage ¶
func (*Client) ProtoMessage()
func (*Client) ProtoReflect ¶
func (x *Client) ProtoReflect() protoreflect.Message
type Frontend ¶
type Frontend struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Active bool `protobuf:"varint,2,opt,name=active,proto3" json:"active,omitempty"` Strategy Strategy `protobuf:"varint,3,opt,name=strategy,proto3,enum=github.com.xdire.xlb.v1.Strategy" json:"strategy,omitempty"` RouteTimeoutSec int32 `protobuf:"varint,4,opt,name=routeTimeoutSec,proto3" json:"routeTimeoutSec,omitempty"` ClientId string `protobuf:"bytes,5,opt,name=clientId,proto3" json:"clientId,omitempty"` AccessKey string `protobuf:"bytes,6,opt,name=accessKey,proto3" json:"accessKey,omitempty"` Routes []*FrontendRoute `protobuf:"bytes,8,rep,name=routes,proto3" json:"routes,omitempty"` // contains filtered or unexported fields }
func (*Frontend) Descriptor
deprecated
func (*Frontend) GetAccessKey ¶
func (*Frontend) GetClientId ¶
func (*Frontend) GetRouteTimeoutSec ¶
func (*Frontend) GetRoutes ¶
func (x *Frontend) GetRoutes() []*FrontendRoute
func (*Frontend) GetStrategy ¶
func (*Frontend) ProtoMessage ¶
func (*Frontend) ProtoMessage()
func (*Frontend) ProtoReflect ¶
func (x *Frontend) ProtoReflect() protoreflect.Message
type FrontendRoute ¶
type FrontendRoute struct { Dest string `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"` Capacity int32 `protobuf:"varint,3,opt,name=capacity,proto3" json:"capacity,omitempty"` // contains filtered or unexported fields }
func (*FrontendRoute) Descriptor
deprecated
func (*FrontendRoute) Descriptor() ([]byte, []int)
Deprecated: Use FrontendRoute.ProtoReflect.Descriptor instead.
func (*FrontendRoute) GetCapacity ¶
func (x *FrontendRoute) GetCapacity() int32
func (*FrontendRoute) GetDest ¶
func (x *FrontendRoute) GetDest() string
func (*FrontendRoute) ProtoMessage ¶
func (*FrontendRoute) ProtoMessage()
func (*FrontendRoute) ProtoReflect ¶
func (x *FrontendRoute) ProtoReflect() protoreflect.Message
func (*FrontendRoute) Reset ¶
func (x *FrontendRoute) Reset()
func (*FrontendRoute) String ¶
func (x *FrontendRoute) String() string
type FrontendTLSData ¶
type FrontendTLSData struct { Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Certificate string `protobuf:"bytes,3,opt,name=certificate,proto3" json:"certificate,omitempty"` // contains filtered or unexported fields }
func (*FrontendTLSData) Descriptor
deprecated
func (*FrontendTLSData) Descriptor() ([]byte, []int)
Deprecated: Use FrontendTLSData.ProtoReflect.Descriptor instead.
func (*FrontendTLSData) GetCertificate ¶
func (x *FrontendTLSData) GetCertificate() string
func (*FrontendTLSData) GetKey ¶
func (x *FrontendTLSData) GetKey() string
func (*FrontendTLSData) ProtoMessage ¶
func (*FrontendTLSData) ProtoMessage()
func (*FrontendTLSData) ProtoReflect ¶
func (x *FrontendTLSData) ProtoReflect() protoreflect.Message
func (*FrontendTLSData) Reset ¶
func (x *FrontendTLSData) Reset()
func (*FrontendTLSData) String ¶
func (x *FrontendTLSData) String() string
type Strategy ¶
type Strategy int32
func (Strategy) Descriptor ¶
func (Strategy) Descriptor() protoreflect.EnumDescriptor
func (Strategy) EnumDescriptor
deprecated
func (Strategy) Number ¶
func (x Strategy) Number() protoreflect.EnumNumber
func (Strategy) Type ¶
func (Strategy) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.