config

package
v0.0.0-...-30dbe51 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(New)

Functions

This section is empty.

Types

type App

type App struct {
	Name    string
	Version string
	Locale  string
}

type Config

type Config struct {
	App      App
	Log      Log
	Database Database
	HTTP     HTTP
	Minio    Minio
	Jwt      jwtauth.Options
	Consul   consul.Options
}

Config is the config of application.

func New

func New(path string) (*Config, error)

New returns a new viper config.

type Database

type Database struct {
	gorm.Options `mapstructure:",squash"`
}

type HTTP

type HTTP struct {
	http.Options `mapstructure:",squash"`
}

type Log

type Log struct {
	logging.Options `mapstructure:",squash"`
}

type Minio

type Minio struct {
	minio.Options `mapstructure:",squash"`
}

Jump to

Keyboard shortcuts

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