settings

package
v0.0.0-...-bf94844 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	Service service  `mapstructure:"service"`
	DB      database `mapstructure:"database"`
}

Settings struct

func Get

func Get(configName string) (*Settings, error)

Get returns main configuration object configName param should be config file name without extension (file should be located in ./settings/)

func New

func New(ctx context.Context) *Settings

New Settings constructor

Jump to

Keyboard shortcuts

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