Documentation ¶
Index ¶
- func GetBoolJSON(obj map[string]interface{}, path string) bool
- func GetConfig(configPath string, esOptions *ESOptions, mgoOptions *MgoOptions) error
- func GetObjectJSON(obj map[string]interface{}, path string) map[string]interface{}
- func GetStringJSON(obj map[string]interface{}, path string) string
- func ReadJSONFromFile(path string, v *map[string]interface{}) error
- type ESOptions
- type MgoOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBoolJSON ¶
GetBoolJSON takes a map[string]interface{} and path and return bool Example of path : mongodb.uri Path is a string that contains json keys that's splitted by '.'
func GetConfig ¶
func GetConfig(configPath string, esOptions *ESOptions, mgoOptions *MgoOptions) error
func GetObjectJSON ¶
GetObjectJSON takes a map[string]interface{} and path and return map[string]interface{} Example of path : mongodb.uri Path is a string that contains json keys that's splitted by '.'
func GetStringJSON ¶
GetStringJSON takes a map[string]interface{} and path and return string Example of path : mongodb.uri Path is a string that contains json keys that's splitted by '.'
func ReadJSONFromFile ¶
ReadJSONFromFile takes a path and pointer to map[string]interface and return error (if any) Example of path : ../module/test.json
Types ¶
Click to show internal directories.
Click to hide internal directories.