conf

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvLocal = "local"
	EnvProd  = "prod"
)

Variables

This section is empty.

Functions

func CheckEnv added in v1.0.4

func CheckEnv(Env string) bool

Types

type App added in v1.0.4

type App struct {
	Env string `yaml:"Env"`
}

type Bs added in v1.0.4

type Bs struct {
	Server *Server `yaml:"Server"`
	Data   *Data   `yaml:"Data"`
	App    *App    `yaml:"App"`
}

func Load added in v1.0.4

func Load(env string) (bs Bs, err error)

type Data added in v1.0.4

type Data struct {
	StorageDir string `yaml:"StorageDir"`
}

type Server added in v1.0.4

type Server struct {
	Port string `yaml:"Port"`
}

Jump to

Keyboard shortcuts

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