conf

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 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"`
	Log string `yaml:"Log"`
}

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, flagPort, flagEnv, flagDir, flagPprofPort, flagLog 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"`
	Port2 string `yaml:"Port2"`
}

Jump to

Keyboard shortcuts

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