Documentation ¶
Index ¶
- func Cors(serverConfig *toml.Tree, EnvConfig string) *cors.Cors
- func GetBool(tree *toml.Tree, key string, values ...bool) bool
- func GetInt(tree *toml.Tree, key string, values ...int) int
- func GetStringArray(tree *toml.Tree, key string, values ...[]string) []string
- func GetTree(tree *toml.Tree, key string) *toml.Tree
- func IsLocal(Env string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cors ¶
* * @func Cors * @desc Cors middleware * @param config *toml.Tree ( get config from toml file, eg: config, err := toml.LoadFile(path) ) * @param Env string ( get env from toml file, eg: config = iris.TOML("./config/iris.toml") config.Get("env").(string) ) * @return cors.Options
func GetStringArray ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.