cfg

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: MIT Imports: 8 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	API   api.Config   `json:"api"`
	Log   log.Config   `json:"log"`
	Queue queue.Config `json:"queue"`
	SMTP  smtp.Config  `json:"smtp"`
}

Global configuration for the application.

func Parse

func Parse() (*Config, error)

Parse the flags passed to the application

func (*Config) Save

func (c *Config) Save(path string) error

Save the configuration to the specified path.

Jump to

Keyboard shortcuts

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