replconfig

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

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

func ReplConfig(configPath string) (replconf Config, err error)

ReplConfig unmarshals the Yaml from a mongodb.conf file and makes it available for use in a Config struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL