config

package
v0.0.0-...-160c400 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationConfig

type ApplicationConfig struct {
	Name string `yaml:"name"`
	Mod  string `yaml:"mod"`
	Key  string `yaml:"key"`
}

type Config

type Config struct {
	Application ApplicationConfig `yaml:"application"`
	Gin         GinConfig         `yaml:"gin"`
	Grpc        grpc.Config       `yaml:"gin"`
	Log         xlog.Config       `yaml:"log"`
	NirvanaDB   xdb.Config        `yaml:"nirvanaDB"`
	JWT         xjwt.Config       `yaml:"jwt"`
}
var C *Config

func New

func New(viper *viper.Viper) *Config

type GinConfig

type GinConfig struct {
	Addr string `yaml:"addr"`
}

Jump to

Keyboard shortcuts

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