config

package
v0.0.0-...-748440e Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2018 License: MIT Imports: 9 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 {
	Database Database
	Logs     []LogTarget `yaml:"logs"`
	Jwt      JwtConfig
	Slack    Slack `yaml:"slack"`
}

func Config

func Config() *Configuration

Config returns configuration struct

type Database

type Database struct {
	Type             string
	ConnectionString string `yaml:"connection_string"`
	Username         string
	Password         string
	Address          string
	DBName           string
}

type JwtConfig

type JwtConfig struct {
	SecretKey     string `yaml:"secret_key"`
	DurationInMin int    `yaml:"duration_in_min"`
}

type LogTarget

type LogTarget struct {
	Name             string
	Type             string
	Minlevel         string `yaml:"min_level"`
	ConnectionString string `yaml:"connection_string"`
}

type Slack

type Slack struct {
	Token       string `yaml:"token"`
	ChannelName string `yaml:"channel_name"`
}

Jump to

Keyboard shortcuts

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