config

package
v0.0.0-...-4955f5c Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server *Server   `yaml:"server,omitempty"`
	DB     *Database `yaml:"database,omitempty"`
}

Config holds data for application configuration

func Load

func Load(file string, logger log.Logger) (*Config, error)

Load returns config from yaml and environment variables.

type Database

type Database struct {
	Dsn string `yaml:"dsn,omitempty"`
}

Database holds data for database configuration

type Server

type Server struct {
	Port string `yaml:"port,omitempty"`
}

Server holds data for server configuration

Jump to

Keyboard shortcuts

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