conf

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup()

Types

type AllConfig

type AllConfig struct {
	App struct {
		Version string
		Name    string
		Log     struct {
			Level string
			File  struct {
				Enable bool
				Path   string
			}
		}
		Token struct {
			Secret         string
			ExpireDuration string `mapstructure:"expire_duration"`
		}
		Swagger struct {
			Enable bool
		}
		Data struct {
			Database struct {
				Driver      string
				Source      string
				MaxIdleConn int `mapstructure:"max_idle_conn"`
				MaxOpenConn int `mapstructure:"max_open_conn"`
			}
		}
		Response struct {
			HideErrorDetails bool `mapstructure:"hide_error_details"`
		}
	}
	Server struct {
		RunMode string `mapstructure:"run_mode"`
		Port    string
	}
}
var Config AllConfig

Jump to

Keyboard shortcuts

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