Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AlgorithmLabels = map[Algorithm]string{
"round-robin": "Round-robin",
"least-connections": "Least Connections",
"source-ip": "Source IP",
}
View Source
var Algorithms = []Algorithm{
"round-robin",
"least-connections",
"source-ip",
}
View Source
var Availabilities = []Availability{
"unavailable",
"available",
"backup",
}
View Source
var AvailabilityLabels = map[Availability]string{
"unavailable": "Unavailable",
"available": "Available",
"backup": "Backup",
}
View Source
var CipherSuiteLabels = map[CipherSuite]string{
"recommended": "Recommended",
"legacy": "Legacy",
}
View Source
var CipherSuites = []CipherSuite{
"recommended",
"legacy",
}
View Source
var DB *bolt.DB
View Source
var DriverLabels = map[Driver]string{
"nginx": "Nginx",
}
View Source
var Drivers = []Driver{
"nginx",
}
View Source
var ProtocolLabels = map[Protocol]string{
"http": "HTTP",
"https": "HTTPS",
}
View Source
var Protocols = []Protocol{
"http",
"https",
}
Functions ¶
Types ¶
type Availability ¶
type Availability string
func (Availability) Label ¶
func (a Availability) Label() string
type Balancer ¶
type Balancer struct {
Id bson.ObjectId
Label string
Settings BalancerSettings
}
func ListBalancers ¶
type BalancerSettings ¶
type BalancerSettings struct {
Hostname string
Port int
Protocol Protocol
Algorithm Algorithm
SSLOptions SSLOptions
}
type CipherSuite ¶
type CipherSuite string
func (CipherSuite) Label ¶
func (c CipherSuite) Label() string
type SSLOptions ¶
type SSLOptions struct {
CipherSuite CipherSuite
Certificate []byte
PrivateKey []byte
DNSNames []string
Fingerprint []byte
}
type Server ¶
type Server struct {
Id bson.ObjectId
BalancerId bson.ObjectId
Label string
Settings ServerSettings
}
func ListServersByBalancer ¶
type ServerSettings ¶
type ServerSettings struct {
Address string
Weight int
Availability Availability
}
Click to show internal directories.
Click to hide internal directories.