config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PROFILE_PERSIST_URL = "/persist/profile"
)

Variables

View Source
var MYSQL_ONLINE = MySQLConfig{
	User:     "root",
	Password: "Zi7d9ZnEC6vY3Nmt",
	IP:       "60.205.219.136",
	Port:     3306,
	DataBase: "std",
}
View Source
var MYSQL_TEST = MySQLConfig{
	User:     "root",
	Password: "root",
	IP:       "127.0.0.1",
	Port:     3306,
	DataBase: "std",
}
View Source
var REDIS_ONLINE = redis.Options{
	Network:  "tcp",
	Addr:     "60.205.219.136:6379",
	Password: "myT2ltslNLx9r7Lm",
}
View Source
var REDIS_TEST = redis.Options{
	Network:  "tcp",
	Addr:     "127.0.0.1:6379",
	Password: "myT2ltslNLx9r7Lm",
}

Functions

func MySQL_URL

func MySQL_URL(config MySQLConfig) string

Types

type MySQLConfig

type MySQLConfig struct {
	User     string
	Password string
	IP       string
	Port     int
	DataBase string
}

Jump to

Keyboard shortcuts

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