config

package
v0.0.0-...-feeaf7e Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register() error

Types

type Config

type Config struct {
	HttpPort             int    `env:"HTTP_PORT" envDefault:"8080"`
	GormMasterDSN        string `env:"GORM_MASTER_DSN,required"`
	RedisDSN             string `env:"REDIS_DSN"`
	RedisPassword        string `env:"REDIS_PASSWORD"`
	GormMasterPoolConfig string `env:"GORM_MASTER_POOL_CONFIG" envDefault:"MaxOpenConns=100&MaxIdleConns=50&ConnMaxIdleTime=1200&ConnMaxLifetime=1800"`

	//amqp://guest:guest@localhost
	RabbitAddrUrl string `env:"RABBIT_ADDR_URL,required"`
}
var Configs Config

Jump to

Keyboard shortcuts

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