config

package
v0.0.0-...-befd7ab Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port     string               `json:"port"`
	Database database.MongoConfig `json:"database"`
}

Config structure represents general configuration for application

func ReadConfig

func ReadConfig(filename string) (conf Config, err error)

ReadConfig performs reading config file, validates it and parse into Config structure

Jump to

Keyboard shortcuts

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