Documentation ¶
Index ¶
- Constants
- func NewTimeoutClient(connectTimeout time.Duration, readWriteTimeout time.Duration) *http.Client
- func Shuffle(n int, swap func(i, j int))
- type LBCluster
- func (self *LBCluster) Find_best_hosts(hosts_to_check map[string]lbhost.LBHost)
- func (self *LBCluster) Get_list_hosts(current_list map[string]lbhost.LBHost)
- func (self *LBCluster) Refresh_dns(dnsManager, keyPrefix, internalKey, externalKey string, ...)
- func (self *LBCluster) Time_to_refresh() bool
- func (self *LBCluster) Write_to_log(level string, msg string) error
- type Log
- type Logger
- type Pair
- type PairList
- type Params
Constants ¶
View Source
const OID string = ".1.3.6.1.4.1.96.255.1"
View Source
const TIMEOUT int = 10
View Source
const WorstValue int = 99999
Variables ¶
This section is empty.
Functions ¶
func NewTimeoutClient ¶
The following functions are for the roger state and its timeout
Types ¶
type LBCluster ¶
type LBCluster struct { Cluster_name string Loadbalancing_username string Loadbalancing_password string Host_metric_table map[string]int Parameters Params Time_of_last_evaluation time.Time Current_best_hosts []string Previous_best_hosts []string Previous_best_hosts_dns []string Statistics_filename string Per_cluster_filename string Current_index int Slog *Log }
func (*LBCluster) Find_best_hosts ¶
func (*LBCluster) Get_list_hosts ¶ added in v0.1.14
func (*LBCluster) Refresh_dns ¶
func (self *LBCluster) Refresh_dns(dnsManager, keyPrefix, internalKey, externalKey string, hosts_to_check map[string]lbhost.LBHost)
This is the only public function here. It retrieves the status of the dns,
and then updates it with the new hosts
func (*LBCluster) Time_to_refresh ¶
type Log ¶
Click to show internal directories.
Click to hide internal directories.