conf

package
v0.0.0-...-d5996f0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

*

  • mysql数据库配置信息

Index

Constants

View Source
const (
	CookieName = "uid"
	AESKey     = "DIS**#KKKDJJSKDI"
	CookieSign = "sign"
)
View Source
const (
	DriverName = "mysql"
)
View Source
const (
	FormTagName = "form"
)
View Source
const (
	SeckillQueueName = "seckill_product"
)

Variables

View Source
var DbMasterList = []DbConfig{
	{
		Host:      "127.0.0.1",
		Port:      3306,
		User:      "root",
		Pwd:       "root",
		Database:  "seckill",
		IsRunning: true,
	},
}

系统中所有mysql主库 root:root@tcp(127.0.0.1:3306)/seckill?charset=utf8

Functions

This section is empty.

Types

type DbConfig

type DbConfig struct {
	Host      string
	Port      int
	User      string
	Pwd       string
	Database  string
	IsRunning bool // 是否正常运行
}
var DbMaster DbConfig = DbMasterList[0]

Jump to

Keyboard shortcuts

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