Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultMaxJobs = 100 DefaultMaxWorkers = 20 DefaultTimeout = 20 BaseRESTURL = "baseRESTURL" BaseRESTURLDescription = "The REST server base URL" RestTimeout = "restTimeout" RestTimeoutDescription = "Timeout for a REST API call (in seconds)" EnableRateLimiter = "enableRateLimiter" EnableRateLimiterDescription = "Flag to enable rate limiter for the Echo REST server (default: true)" AllowedCorsOrigins = "allowedCorsOrigins" AllowedCorsOriginsDescription = "Comma separated list of allowed CORS origins" EchoDebug = "echoDebug" EchoDebugDescription = "Flag to enable debug mode in Echo REST API server (i.e., log every request to server)" MaxWorkers = "maxWorkers" MaxWorkersDescription = "The maximum amount of workers running in parallel to attend job requests" MaxJobs = "maxJobs" MaxJobsDescription = "The maximum amount of jobs allowed to be queued to attend job requests" WsMaxConnections = "wsMaxConnections" WsMaxConnectionsDefault = 10 WstDefaultMaxConnectionsDescription = "The maximum number of concurrent websocket connections" EnableAuditing = "enableAuditing" EnableAuditingDescription = "Flag to enable audit logs for REST API calls." )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalConfig ¶
type GlobalConfig struct {
Traces Traces
RestServer RestServer
Worker Worker
Inventory Southbound
Websocket Websocket
EnableAuditing bool
}
func Config ¶
func Config() (*GlobalConfig, error)
func DefaultConfig ¶
func DefaultConfig() *GlobalConfig
type RestServer ¶
type Southbound ¶
Click to show internal directories.
Click to hide internal directories.