config

package
v0.0.0-...-dc24fe2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConfFileName defines config file name.
	ConfFileName = "./etc/app.ini"
	// SectionServer is a section name for grpc server.
	SectionServer = "web-server"
	// SectionLogger is a section name for logger.
	SectionLogger = "web-logger"
	// SectionMysql is a sectoin name for mysql.
	SectionMysql = "web-mysql"
	// SectionRedis is a section name for redis.
	SectionRedis = "web-redis"
	// SectionQueueRedis is a section name for queue-redis.
	SectionQueueRedis = "web-queue-redis"
	// SectionQueueServer is a section name for queue-server.
	SectionQueueServer = "web-queue-server"
	// SectionQueueAliAmqp is a section name for queue-ali-amqp.
	SectionQueueAliAmqp = "web-queue-ali-amqp"
	// SectionQueueAliRocketMQ is a section name for ali-rocket-mq
	SectionQueueAliRocketMQ = "web-queue-ali-rocket-mq"
	// SectionOSSAli is a section name for oss-ali
	SectionOSSAli = "web-oss-ali"
)

Variables

This section is empty.

Functions

func LoadDefaultConfig

func LoadDefaultConfig(application *vars.Application) error

LoadDefaultConfig loads config form cfg.

func MapConfig

func MapConfig(section string, v interface{})

MapConfig uses cfg to map config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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