Documentation ¶
Index ¶
- func Address(addr string) func(*Server)
- func ErrorCh(ch chan struct{}) func(*Server)
- func Mf823Address(a string) func(*Server)
- func Mf823Parameters(p []string) func(*Server)
- func Microtik(m *microtik.Microtik) func(*Server)
- func PingAddress(addresses []string) func(*Server)
- func PingEnabled(enabled bool) func(*Server)
- func PingInterval(interval time.Duration) func(*Server)
- func PingSamples(samples int) func(*Server)
- func PingTimeout(timeout time.Duration) func(*Server)
- func Port(port int) func(*Server)
- func Route(routeName string) func(*Server)
- func Service(serviceName string) func(*Server)
- type Option
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorCh ¶
func ErrorCh(ch chan struct{}) func(*Server)
ErrorCh is a functional option which provides channel to the webserver which will be closed if an unrecoverable error happens
func Mf823Address ¶
Mf823Address is a functional option which sets the ip address of a a ZTE MF823 4G USB modem
func Mf823Parameters ¶
Mf823Parameters is a functional option which sets the parameters which will be retrieved from a ZTE MF823 4G USB modem
func PingAddress ¶
PingAddress sets the hosts to be pinged
func PingEnabled ¶
PingEnabled enables the background job to ping the provided hosts in the defined interval. Otherwise the hosts will only be pinged on the execution of the corresponing http call
func PingInterval ¶
PingInterval sets the interval in which the provided hosts will be pinged
func PingSamples ¶
PingSamples sets the amount of pings sent to each host (for averaging)
func PingTimeout ¶
PingTimeout sets the timeout for each ping query cycle