netconf

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkConf

type NetworkConf struct {
	apis.Endpoint `yaml:"-,inline"`
	Peers         []apis.Endpoint `yaml:"peers,omitempty" json:"peers,omitempty"`
	Mediator      *apis.Endpoint  `yaml:"mediator,omitempty" json:"mediator,omitempty"`
}

func LoadNetworkConf

func LoadNetworkConf(path string) (NetworkConf, error)

type RealServer

type RealServer struct {
	IP   string `yaml:"ip,omitempty"`
	Port int32  `yaml:"port,omitempty"`
}

func (RealServer) String

func (s RealServer) String() string

type RealServers

type RealServers []RealServer

func (RealServers) Len

func (s RealServers) Len() int

func (RealServers) Less

func (s RealServers) Less(i, j int) bool

func (RealServers) Swap

func (s RealServers) Swap(i, j int)

type VirtualServer

type VirtualServer struct {
	IP       string          `yaml:"ip,omitempty"`
	Port     int32           `yaml:"port,omitempty"`
	Protocol corev1.Protocol `yaml:"protocol,omitempty"`

	Scheduler           string                 `yaml:"scheduler,omitempty"`
	SessionAffinity     corev1.ServiceAffinity `yaml:"sessionAffinity,omitempty"`
	StickyMaxAgeSeconds int32                  `yaml:"stickyMaxAgeSeconds,omitempty"`

	RealServers RealServers `yaml:"realServers,omitempty"`
}

type VirtualServers

type VirtualServers []VirtualServer

func (VirtualServers) Len

func (s VirtualServers) Len() int

func (VirtualServers) Less

func (s VirtualServers) Less(i, j int) bool

func (VirtualServers) Swap

func (s VirtualServers) Swap(i, j int)

Jump to

Keyboard shortcuts

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