entity

package
v0.0.0-...-ea7e872 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Backend.ProtoReflect.Descriptor instead.

func (*Backend) GetFrontend

func (x *Backend) GetFrontend() string

func (*Backend) GetStrategy

func (x *Backend) GetStrategy() Strategy

func (*Backend) GetUuid

func (x *Backend) GetUuid() string

func (*Backend) ProtoMessage

func (*Backend) ProtoMessage()

func (*Backend) ProtoReflect

func (x *Backend) ProtoReflect() protoreflect.Message

func (*Backend) Reset

func (x *Backend) Reset()

func (*Backend) String

func (x *Backend) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetCreatedAt

func (x *Client) GetCreatedAt() *timestamppb.Timestamp

func (*Client) GetKey

func (x *Client) GetKey() string

func (*Client) GetName

func (x *Client) GetName() string

func (*Client) GetUuid

func (x *Client) GetUuid() string

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) ProtoReflect

func (x *Client) ProtoReflect() protoreflect.Message

func (*Client) Reset

func (x *Client) Reset()

func (*Client) String

func (x *Client) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Frontend.ProtoReflect.Descriptor instead.

func (*Frontend) GetAccessKey

func (x *Frontend) GetAccessKey() string

func (*Frontend) GetActive

func (x *Frontend) GetActive() bool

func (*Frontend) GetClientId

func (x *Frontend) GetClientId() string

func (*Frontend) GetRouteTimeoutSec

func (x *Frontend) GetRouteTimeoutSec() int32

func (*Frontend) GetRoutes

func (x *Frontend) GetRoutes() []*FrontendRoute

func (*Frontend) GetStrategy

func (x *Frontend) GetStrategy() Strategy

func (*Frontend) GetUuid

func (x *Frontend) GetUuid() string

func (*Frontend) ProtoMessage

func (*Frontend) ProtoMessage()

func (*Frontend) ProtoReflect

func (x *Frontend) ProtoReflect() protoreflect.Message

func (*Frontend) Reset

func (x *Frontend) Reset()

func (*Frontend) String

func (x *Frontend) String() string

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
const (
	Strategy_RoundRobin Strategy = 0
	Strategy_LeastConn  Strategy = 1
)

func (Strategy) Descriptor

func (Strategy) Descriptor() protoreflect.EnumDescriptor

func (Strategy) Enum

func (x Strategy) Enum() *Strategy

func (Strategy) EnumDescriptor deprecated

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

Deprecated: Use Strategy.Descriptor instead.

func (Strategy) Number

func (x Strategy) Number() protoreflect.EnumNumber

func (Strategy) String

func (x Strategy) String() string

func (Strategy) Type

Jump to

Keyboard shortcuts

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