config

package
v0.0.0-...-71b0d36 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Default = `` /* 167-byte string literal not displayed */

Default represents default configuration in YAML format with 2-space

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug    bool
	Database Database `mapstructure:"database"`
	App      struct {
		Broker struct {
			Addr string
		}
	}
	Node struct {
		Broker struct {
			Addr string
		}
	}
}

Config holds all lanserver component configurations

func New

func New() Config

New reads configuration with viper

type Database

type Database struct {
	URL  string `mapstructure:"url"`
	Name string `mapstructure:"name"`
}

Database holds database configuration

Jump to

Keyboard shortcuts

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