Documentation ¶
Index ¶
- Variables
- func InitializeConfig(f string, p map[string]string) error
- func SetConfig(cfg *Conf)
- func Update(settings map[string]interface{}) error
- type AESConf
- type Conf
- type ConnectionsConf
- type DashboardSecurityConf
- type DbConf
- type HttpConnectionConf
- type HttpConnectionTimeoutConf
- type IndexConf
- type LogConf
- type LogsConf
- type SSLConf
- type SecurityConf
- type ServiceConf
- type WsConnectionBufferSizeConf
- type WsConnectionConf
- type WsConnectionTimeoutConf
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfigs = `` /* 1232-byte string literal not displayed */
Functions ¶
Types ¶
type Conf ¶
type Conf struct { Service *ServiceConf `json:"service" assign:"service;;-"` Security *SecurityConf `json:"security" assign:"security;;"` Connections *ConnectionsConf `json:"connections" assign:"connections;;"` Indices *IndexConf `json:"indices" assign:"indices;;"` Database *DbConf `json:"database" assign:"database;;-"` Logging *LogsConf `json:"logging" assign:"logging;;-"` }
type ConnectionsConf ¶
type ConnectionsConf struct { Registry string `json:"registry" assign:"registry;;-"` NShards int `json:"nshards" assign:"nshards;;-"` InitShardSize int `json:"init_shard_size" assign:"init_shard_size;;-"` Http *HttpConnectionConf `json:"http" assign:"http;;"` Websocket *WsConnectionConf `json:"websocket" assign:"websocket;;"` }
type DashboardSecurityConf ¶
type HttpConnectionConf ¶
type HttpConnectionConf struct {
Timeouts *HttpConnectionTimeoutConf `json:"timeouts" assign:"timeouts;;"`
}
type HttpConnectionTimeoutConf ¶
type HttpConnectionTimeoutConf struct {
LongPolling *JSONDuration `json:"long_polling" assign:"long_polling;jsonduration;"`
}
type IndexConf ¶
type IndexConf struct { Disable bool `json:"disable" assign:"disable;;"` Host string `json:"host" assign:"host;;-"` Port int `json:"port" assign:"port;;-"` NumberOfShards int `json:"number_of_shards" assign:"number_of_shards;;-"` NumberOfReplicas int `json:"number_of_replicas" assign:"number_of_replicas;;-"` TTLEnabled bool `json:"ttl_enabled" assign:"ttl_enabled;;-"` TTL *JSONDuration `json:"ttl" assign:"ttl;jsonduration;-"` }
type LogConf ¶
type LogConf struct { Filename string `json:"filename" assign:"filename;;-"` MaxSize int `json:"maxsize" assign:"maxsize;;-"` MaxAge int `json:"maxage" assign:"maxage;;-"` MaxBackups int `json:"maxbackups" assign:"maxbackups;;-"` Level string `json:"level" assign:"level;;-"` BufferSize int `json:"buffer_size" assign:"buffer_size;;-"` }
type SecurityConf ¶
type SecurityConf struct { Dashboard *DashboardSecurityConf `json:"dashboard" assign:"dashboard;;"` SSL *SSLConf `json:"-" assign:"ssl;;-"` ApiKey string `json:"-" assign:"api_key;;"` }
type ServiceConf ¶
type WsConnectionConf ¶
type WsConnectionConf struct { RequestQueueSize int `json:"request_queue_size" assign:"request_queue_size;;"` Timeouts *WsConnectionTimeoutConf `json:"timeouts" assign:"timeouts;;"` BufferSizes *WsConnectionBufferSizeConf `json:"buffer_sizes" assign:"buffer_sizes;;"` }
type WsConnectionTimeoutConf ¶
type WsConnectionTimeoutConf struct { Write *JSONDuration `json:"write" assign:"write;jsonduration;"` Read *JSONDuration `json:"read" assign:"read;jsonduration;"` Request *JSONDuration `json:"request" assign:"request;jsonduration;"` Response *JSONDuration `json:"response" assign:"response;jsonduration;"` }
Click to show internal directories.
Click to hide internal directories.