global

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const EnvPrefix = "BOT"
View Source
const JWTSecret = "bot"

Variables

This section is empty.

Functions

func InitCfg

func InitCfg(cfg *Config) (err error)

func SCM

func SCM() scm.Interface

Types

type Config

type Config struct {
	Server server.Config `json:"server"`
	SCM    scm.Config    `json:"scm"`
	Logger LoggerConfig  `json:"logger"`
}

func Cfg

func Cfg() *Config

func Environ

func Environ() *Config

type LoggerConfig

type LoggerConfig struct {
	Level string `json:"level"` // debug、info、warn、error、fatal、panic、trace
}

Jump to

Keyboard shortcuts

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