Documentation
¶
Index ¶
- func BKDRHash(s string) int64
- func Exit()
- func FindIDCardSlot(key string) *sql.DB
- func FindPhoneSlot(key string) *sql.DB
- func FindTPUserIDSlot(key string) *sql.DB
- func FindUinSlot(key int64) *sql.DB
- func GetDB(dbName string) (db *sql.DB, err error)
- func RowsInfo(rows *sql.Rows) (info string)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindIDCardSlot ¶
func FindPhoneSlot ¶
func FindTPUserIDSlot ¶
func FindUinSlot ¶
Types ¶
type Config ¶
type Config struct { LogLevel int `json:"log_level"` MaxOpenConn int `json:"max_open_conn"` // 最大连接池打开连接的数量 MaxIdleConn int `json:"max_idle_conn"` // 最大连接池闲置连接数量 DBUserInfos []dbConfig `json:"db_user_infos"` DBIndexPhones []dbConfig `json:"db_index_phones"` DBIndexTPUserIDs []dbConfig `json:"db_index_third_platform_userid"` DBIndexIDCards []dbConfig `json:"db_index_id_card"` }
func (*Config) PostUpdate ¶
func (c *Config) PostUpdate(cfg interface{})
Click to show internal directories.
Click to hide internal directories.