config

package
v0.0.0-...-592b0ac Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: Apache-2.0 Imports: 3 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 {
	zrpc.RpcServerConf
	Mysql struct {
		DataSource string
	}
	CacheRedis cache.ClusterConf
	UserToken  struct {
		AccessSecret string
		AccessExpire int64
	}
	Rej struct {
		AccessSecret string
		AccessExpire int64
	}
	NodeID           int64
	WexinMiniprogram weixin.MiniprogramConf `json:",optional"` // 微信小程序,可选
	UserOpt          struct {
		NeedUserName bool  `json:default=true` //注册是否必须填写账号密码
		NeedPassWord bool  `json:default=true` //注册是否必须填写账号密码
		PassLevel    int32 `json:default=2`    //用户密码强度级别
	} // 用户登录注册选项
}

Jump to

Keyboard shortcuts

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