Documentation
¶
Index ¶
- Constants
- Variables
- func CACertChainFile() string
- func CAKeyFile() string
- func CAsCertFile() string
- func CertChainFile() string
- func CertFile() string
- func HTTPLocalURL() string
- func HTTPNodeAndPortURL(node, port string) string
- func HTTPNodeURL(node string) string
- func HTTPUnixFile() string
- func HTTPUnixURL() string
- func KeyFile() string
- func ProfileUnixFile() string
Constants ¶
const ( // ListenerNameUX is the listener serving the unix socket. ListenerNameUX = "api.ux" // ListenerNameInet is the listener serving the tcp port. ListenerNameInet = "api.inet" // ListenerNameFamily is the parent of both, for a client selecting // the whole api rather than one of its listeners. ListenerNameFamily = "api" )
The listeners are named the same wherever they are named: the audit subsystem a client selects with "om daemon audit --sub", the label the listener subscribes to daemon control messages with, and the name the api takes in the path of the listener actions. They used to differ, so an action addressed to the name the audit taxonomy uses was accepted, queued, and matched by no subscriber.
Variables ¶
var ( HTTPPort = 1215 DrainChanDuration = 40 * time.Millisecond // ImonDelayDuration is the minimum for new imon publication ImonDelayDuration = 250 * time.Millisecond // ReadyDuration define the minimum time to wait during the startup of an instance object by imon // The ready duration impacts the durations involved during daemon cluster split analyse (see nmon spit // detection details). ReadyDuration = 5 * time.Second // Username is the current username, or "root" if user.Current has error Username string // Groupname is the current group name from user.Current, or "root" if user.LookupGroupId has error Groupname string // HTTPUnixFileBasename is the basename of http listener unix socket HTTPUnixFileBasename = "http.sock" // HeartbeatStatusRefreshMaximumInterval is the maximum interval for refreshing daemon heartbeat statistics HeartbeatStatusRefreshMaximumInterval = 60 * time.Second )
var ( // SubQSSmall is the daemon subscription small queue size SubQSSmall uint64 = 200 // SubQSSmall is the daemon subscription medium queue size SubQSMedium uint64 = 1000 // SubQSSmall is the daemon subscription large queue size SubQSLarge uint64 = 20000 // SubQSHuge is the daemon subscription huge queue size SubQSHuge uint64 = 40000 )
var LifecycleListenerNames = []string{ListenerNameInet}
LifecycleListenerNames are the listeners a start, stop or restart may be addressed to.
The unix socket listener is not one of them: it lives as long as the daemon does, and the request asking for its restart travels through it. It used to accept the three actions, log that it ignored them, and answer the caller that they were queued.
var ListenerNames = []string{ListenerNameUX, ListenerNameInet}
ListenerNames are the listeners an api action may be addressed to.
Functions ¶
func CACertChainFile ¶
func CACertChainFile() string
func CAsCertFile ¶
func CAsCertFile() string
func CertChainFile ¶
func CertChainFile() string
func HTTPLocalURL ¶
func HTTPLocalURL() string
func HTTPNodeAndPortURL ¶
func HTTPNodeURL ¶
func HTTPUnixFile ¶
func HTTPUnixFile() string
func HTTPUnixURL ¶
func HTTPUnixURL() string
func ProfileUnixFile ¶
func ProfileUnixFile() string
Types ¶
This section is empty.