lbhost

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const OID string = ".1.3.6.1.4.1.96.255.1"
View Source
const TIMEOUT int = 10

Variables

This section is empty.

Functions

This section is empty.

Types

type LBHost

type LBHost struct {
	Cluster_name           string
	Host_name              string
	Host_transports        []LBHostTransportResult
	Loadbalancing_username string
	Loadbalancing_password string
	LogFile                string

	Debugflag bool
	// contains filtered or unexported fields
}

func (*LBHost) Get_Ips added in v0.2.1

func (self *LBHost) Get_Ips() ([]net.IP, error)

func (*LBHost) Get_all_IPs added in v0.2.9

func (self *LBHost) Get_all_IPs() ([]net.IP, error)

func (*LBHost) Get_load_for_alias

func (self *LBHost) Get_load_for_alias(cluster_name string) int

func (*LBHost) Get_working_IPs

func (self *LBHost) Get_working_IPs() ([]net.IP, error)

func (*LBHost) Snmp_req

func (self *LBHost) Snmp_req()

func (*LBHost) Write_to_log

func (self *LBHost) Write_to_log(level string, msg string) error

type LBHostTransportResult

type LBHostTransportResult struct {
	Transport       string
	IP              net.IP
	Response_int    int
	Response_string string
	Response_error  string
}

Jump to

Keyboard shortcuts

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