Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cfg ¶
type Cfg struct {
Hosts []NginxHost `yaml:"hosts"`
ClientTimeout int `yaml:"client_timeout"`
APIEndpoint string `yaml:"api_endpoint"`
Resolver string `yaml:"resolver"`
ResolverTimeout int `yaml:"resolver_timeout"`
}
Cfg stores the configuration parameters for all the NGINX Plus instances to get the data from
type NginxHost ¶
type NginxHost struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Resolve bool `yaml:"resolve"`
HostHeader string `yaml:"host_header"`
}
NginxHost stores the information about a remote host of an NGINX Plus instance
type NginxPlus ¶
type NginxPlus struct {
Cfg *Cfg
ClientsPool []*nginx.NginxClient
}
NginxPlus stores the NGINX Plus API client and some internal configuration to fetch data from NGINX
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver handles the resolution of NGINX Plus IPs using a custom DNS resolver
func NewResolver ¶
NewResolver returns a new instance of the Resolver
Click to show internal directories.
Click to hide internal directories.