config

package
v0.0.0-...-65d8ea5 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 2 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

	MysqlConf MysqlConf
	RedisConf RedisConf
	LdapConf  LdapConf
}

type LdapConf

type LdapConf struct {
	ConnUrl       string
	BaseDn        string
	AdminAccount  string
	Password      string
	SslEncryption bool
	Timeout       time.Duration
	DisabledDn    string // 公司禁用DN
	InterDn       string // 公司内部DN
	ExternalDn    string // 外部公司DN
}

type MysqlConf

type MysqlConf struct {
	DataSource      string
	MaxIdleConn     int
	MaxOpenConn     int
	ConnMaxLifeTime time.Duration
}

type RedisConf

type RedisConf struct {
	Addr                           string
	Password                       string
	DB                             int
	PoolSize                       int
	DialTimeout                    time.Duration
	ReadTimeout                    time.Duration
	WriteTimeout                   time.Duration
	PoolTimeout                    time.Duration
	KeyUuapCacheExtCompPreMap      string // uuap外部公司前缀映射缓存key
	CronUuapCacheExtCompPreMapTask string // uuap外部公司前缀映射缓存任务cron规则
}

Jump to

Keyboard shortcuts

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