Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Net struct {
Port int `json:"port"`
BindIP string `json:"bindIp"`
} `json:"net"`
Storage struct {
DbPath string `json:"dbPath"`
} `json:"storage"`
Replication struct {
ReplSetName string `json:"replSetName"`
} `json:"replication"`
}
Config struct describes the values we consider relevant for parsing out of a yaml mongodb conf file
func ReplConfig ¶
ReplConfig unmarshals the Yaml from a mongodb.conf file and makes it available for use in a Config struct
Click to show internal directories.
Click to hide internal directories.