Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ObfuscateCrendentials ¶
Considering the following structure for MongoDB connection string: "mongodb://<username>:<password>@<host>:<port>" The following function will replaces the username and password with "****"
Types ¶
type AppConfig ¶
type AppConfig struct { // Application logging configuration Logging struct { Level string `yaml:"level"` } `yaml:"logging"` // The replication configuration Repl ReplConfig `yaml:"repl"` }
var Current *AppConfig
func (*AppConfig) LoadConfig ¶
LoadConfig loads the configuration from a file
type FullReplConfig ¶
type IncrReplConfig ¶
type ReplConfig ¶
type ReplConfig struct { // The address of the MongoDB server Source string `json:"Source" yaml:"source"` // The address of the MongoDB server Target string `json:"Target" yaml:"target"` // The list of databases to replicate Databases []string `yaml:"databases"` DatabasesIn map[string]bool `yaml:"-"` // Collection whitelist/blacklist Filters map[string][]string `yaml:"filters"` FiltersIn map[string]bool `yaml:"-"` FiltersOut map[string]bool `yaml:"-"` // The replication configuration Full FullReplConfig `yaml:"full"` Incr IncrReplConfig `yaml:"incr"` }
Click to show internal directories.
Click to hide internal directories.