configs

package
v0.0.0-...-214d0a7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Conf = new(Config)

Functions

func InitConfig

func InitConfig() (err error)

func InitLogger

func InitLogger() (err error)

Types

type APIConfig

type APIConfig struct {
	HttpPort    int    `mapstructure:"http_port"`
	GrpcPort    int    `mapstructure:"grpc_port"`
	CasHost     string `mapstructure:"cas_host"`
	CasGrpcPort int    `mapstructure:"cas_grpc_port"`
}

type Code

type Code struct {
	Invite string
}

type Config

type Config struct {
	DBConfig `mapstructure:"db"`

	Code `mapstructure:"code"`

	APIConfig `mapstructure:"api"`

	RedisConfig `mapstructure:"redis"`
}

type DBConfig

type DBConfig struct {
	Driver   string
	Host     string
	Port     int
	Username string
	Password string
	Database string
}

type RedisConfig

type RedisConfig struct {
	Host     string
	Port     int
	Password string
	DB       int
}

Jump to

Keyboard shortcuts

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