conf

package
v0.0.0-...-bee09c4 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	ProjectID string `split_words:"true"`
	Mongo     *MongoConfiguration
}

Configuration is the main configuration struct

func LoadConfig

func LoadConfig(filename string) (*Configuration, error)

LoadConfig loads the configuration from a file

type MongoConfiguration

type MongoConfiguration struct {
	DB       string `split_words:"true"`
	User     string `split_words:"true"`
	Password string `split_words:"true"`
	Port     string `split_words:"true"`
	Host     string `split_words:"true"`
}

MongoConfiguration for mongo config

Jump to

Keyboard shortcuts

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