Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Mongo MongoConf `json:"mongodb"` Server ServerConf `json:"server"` }
func NewConfiguration ¶
func NewConfiguration() *Configuration
func (*Configuration) Read ¶
func (c *Configuration) Read() error
type MongoCompressorsConf ¶
type MongoConf ¶
type MongoConf struct { ClientID string `json:"clientId"` Uri string `json:"uri"` Database string `json:"database"` Username string `json:"username"` Password string `json:"password"` TimeoutMS int `json:"timeoutMS"` ConnectTimeoutMS int `json:"connectTimeoutMS"` MaxPoolSize int `json:"maxPoolSize"` ReplicaSet string `json:"replicaSet"` MaxIdleTimeMS int `json:"maxIdleTimeMS"` MinPoolSize int `json:"minPoolSize"` SocketTimeoutMS int `json:"socketTimeoutMS"` ServerSelectionTimeoutMS int `json:"serverSelectionTimeoutMS"` HeartbeatFrequencyMS int `json:"heartbeatFrequencyMS"` Tls TLSConf `json:"tls"` Compressors MongoCompressorsConf `json:"compressors"` WriteConcern MongoWriteConcernConf `json:"writeConcern"` ReadPreference MongoReadPreferenceConf `json:"readPreference"` DirectConnection bool `json:"directConnection"` }
type MongoReadPreferenceConf ¶
type MongoReadPreferenceConf struct {
ReadPreference string `json:"readPreference"`
}
type MongoWriteConcernConf ¶
type ServerConf ¶
Click to show internal directories.
Click to hide internal directories.