Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ReloadInterval = getEnvAsDuration("NP_RELOAD_INTERVAL", 1*time.Hour)
)
Functions ¶
func NewTLSConfig ¶ added in v1.15.0
Types ¶
type Instance ¶
type Instance struct {
ID string `json:"id"`
Alias string `json:"alias"`
Type string `json:"type"`
Status string `json:"status"`
URL string `json:"url"`
Config string `json:"config"`
Restart bool `json:"restart"`
Meta Meta `json:"meta"`
Mode int32 `json:"mode"`
Ping int32 `json:"ping"`
Pool int32 `json:"pool"`
TCPS int32 `json:"tcps"`
UDPS int32 `json:"udps"`
TCPRX uint64 `json:"tcprx"`
TCPTX uint64 `json:"tcptx"`
UDPRX uint64 `json:"udprx"`
UDPTX uint64 `json:"udptx"`
TCPRXBase uint64 `json:"-" gob:"-"`
TCPTXBase uint64 `json:"-" gob:"-"`
UDPRXBase uint64 `json:"-" gob:"-"`
UDPTXBase uint64 `json:"-" gob:"-"`
TCPRXReset uint64 `json:"-" gob:"-"`
TCPTXReset uint64 `json:"-" gob:"-"`
UDPRXReset uint64 `json:"-" gob:"-"`
UDPTXReset uint64 `json:"-" gob:"-"`
// contains filtered or unexported fields
}
type InstanceEvent ¶
type InstanceLogWriter ¶
type InstanceLogWriter struct {
// contains filtered or unexported fields
}
func NewInstanceLogWriter ¶
type Master ¶
type Master struct {
Common
// contains filtered or unexported fields
}
type SystemInfo ¶
type SystemInfo struct {
CPU int `json:"cpu"`
MemTotal uint64 `json:"mem_total"`
MemUsed uint64 `json:"mem_used"`
SwapTotal uint64 `json:"swap_total"`
SwapUsed uint64 `json:"swap_used"`
NetRX uint64 `json:"netrx"`
NetTX uint64 `json:"nettx"`
DiskR uint64 `json:"diskr"`
DiskW uint64 `json:"diskw"`
SysUp uint64 `json:"sysup"`
}
type TCPingResult ¶
type TransportPool ¶
Click to show internal directories.
Click to hide internal directories.