config

package
v0.0.0-...-eaf11b8 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(config *Config) error

Types

type Config

type Config struct {
	Server struct {
		Development       bool   `toml:"development"`
		ListenAddress     string `toml:"listen_address"`
		CSRFAuthKey       string `toml:"csrf_auth_key"`
		SigningKey        string `toml:"signing_key"`
		MapboxAccessToken string `toml:"mapbox_access_token"`
	} `toml:"server"`
	DB struct {
		Driver string `toml:"driver"`
		DSN    string `toml:"dsn"`
	} `toml:"db"`
}

func Read

func Read(r io.Reader) (*Config, error)

Jump to

Keyboard shortcuts

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