config

package
v0.0.0-...-e5f6f6e Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name string `` // 应用名称
	/* 157-byte string literal not displayed */
	Mode string `` // 模式[develop,test,release]
	/* 184-byte string literal not displayed */
	File *File `` // 配置文件信息
	/* 157-byte string literal not displayed */
	Log *log.Logger `` // 日志配置信息
	/* 151-byte string literal not displayed */
	Kafka *kafka.Kafka `` // kafka
	/* 156-byte string literal not displayed */
	Redis *redis.Redis `` // redis
	/* 156-byte string literal not displayed */
	Influxdb *influxdb.Influxdb `` // influxdb
	/* 174-byte string literal not displayed */
	Mysql *mysql.MySQL `` // mysql
	/* 156-byte string literal not displayed */
}

配置结构体

type File

type File struct {
	Path string `` // 配置文件目录(绝对目录)
	/* 151-byte string literal not displayed */
	Name string `` // 配置文件名称
	/* 147-byte string literal not displayed */
	Type string `` // 配置文件类型
	/* 189-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*File) Generate

func (cf *File) Generate(name string) error

生成文件

Jump to

Keyboard shortcuts

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