conf

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetPath

func SetPath(path string)

SetPath set config file path

Types

type Config

type Config struct {
	HTTP struct {
		Port int `json:"port"`
	} `json:"http"`

	Logger struct {
		Level string `json:"level"`
	} `json:"logger"`

	Sender struct {
		MailGun MailGun `json:"mailgun"`
	} `json:"sender"`
}

Config service config

func Get

func Get() *Config

Get get config

type MailGun

type MailGun struct {
	Domain string `json:"domain"`
	APIKey string `json:"apiKey"`
}

MailGun mailgun config

Jump to

Keyboard shortcuts

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