settings

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = module.Module{
	{Constructor: New},
}

Module of config things

Functions

func New added in v0.5.0

func New(app *Core) (*viper.Viper, error)

New init viper settings

Types

type Core added in v0.7.0

type Core struct {
	File         string
	Type         string
	Name         string
	Prefix       string
	BuildTime    string
	BuildVersion string
}

Core configuration

func (*Core) Provider added in v0.7.0

func (a *Core) Provider() *module.Provider

Provider - wrap app config to provider

func (Core) SafeType added in v0.7.0

func (a Core) SafeType() string

SafeType returns config type, default config type: yml returns yml if config type not supported

Jump to

Keyboard shortcuts

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