conf

package
v0.0.0-...-7e9a881 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCentrifugoConn

func GetCentrifugoConn() *storage.CentrifugoConfig

func GetDbConn

func GetDbConn() *storage.DatabaseModel

func GetRedisDbConn

func GetRedisDbConn() *storage.RedisModel

func Initer

func Initer()

func LoadConfig

func LoadConfig(configPath string)

func PathExists

func PathExists(path string) (bool, error)

Types

type EnvConf

type EnvConf struct {
	ConfigPath     string
	ServerInfo     *serverModel              `yaml:"server"`
	DatabaseInfo   *storage.DatabaseModel    `yaml:"database"`
	RedisInfo      *storage.RedisModel       `yaml:"redis"`
	Url            *UrlModel                 `yaml:"url"`
	Centrifugo     *storage.CentrifugoConfig `yaml:"centrifugo"`
	Crontab        *storage.Crontab          `yaml:"crontab"`
	CryptoSettings storage.CryptoSettings    `yaml:"crypto_settings"`
}

func GetEnvConf

func GetEnvConf() *EnvConf

type LogConfig

type LogConfig struct {
	LogTo     string
	LogLevel  string
	LogFormat string
}

type UrlModel

type UrlModel struct {
	Base string `yaml:"base_url"`
}

Jump to

Keyboard shortcuts

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