config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 0 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 {
	// 前缀
	Prefix string
}

参数

type LocalConfig

type LocalConfig struct {
	*Config                   // 基础配置
	Path        string        // 文件写入路径
	BogRegister []interface{} //写入文件gob  类型map 、 struct 需要注册,否则gob编码会失效
}

本地缓存配置

type RedisConfig

type RedisConfig struct {
	*Config         // 基础配置
	Addr     string // 主机地址
	Port     string // 端口
	Passwrod string // 密码
	DBnum    int    // 数据库位置
}

redis 缓存配置

Jump to

Keyboard shortcuts

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