Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{
RequestLengthLimit: 1024,
}
DefaultConfig is a base default config
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { BindAddr string `bson:"bindAddr"` Plugins []PluginConfig `bson:"plugins"` Compressors []string `bson:"compressors"` // IdleCursorTimeoutMillis IdleCursorTimeoutMillis *string `bson:"idleCursorTimeoutMillis"` IdleCursorTimeout time.Duration InternalIdentity *plugins.StaticIdentity `bson:"internalIdentity"` RequestLengthLimit int `bson:"requestLengthLimit"` }
Config is the configuration struct for mongoproxy
func ConfigFromFile ¶
ConfigFromFile loads a config (based on DefaultConfig) from the given path
func (*Config) GetPlugins ¶
GetPlugins returns a list of plugin instances for the given config
type PluginConfig ¶
Click to show internal directories.
Click to hide internal directories.