conf

package
v0.0.0-...-90a3c3a Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 0 Imported by: 6

Documentation

Index

Constants

View Source
const DaoPath = "./service/dao/"

dao 文件路径

View Source
const DriverName = "mysql"

数据库驱动

View Source
const EsDaoPath = "./service/elastic/"

daoES 文件路径

View Source
const ModelPath = "./models/"

model保存路径

View Source
const ModelReplace = true

是否覆盖已存在model

View Source
const ServicePath = "./service/"

Service 文件路径

Variables

This section is empty.

Functions

This section is empty.

Types

type DbConf

type DbConf struct {
	Host   string
	Port   string
	User   string
	Pwd    string
	DbName string
	Url    string
	Prefix string
}
var MasterDbConfig DbConf = DbConf{
	Host:   "127.0.0.1",
	Port:   "3306",
	User:   "root",
	Pwd:    "",
	Prefix: "",
	DbName: "rageframe",
	Url:    "",
}

数据库链接配置

type EsConfig

type EsConfig struct {
	Host     string
	Port     int
	Database int
	Username string
	Password string
	Url      string
}
var ElasticConfig EsConfig = EsConfig{
	Host:     "127.0.0.1",
	Port:     9200,
	Database: 0,
	Username: "",
	Password: "",
	Url:      "",
}

type Options

type Options struct {
	Name            string
	Path            string
	Packet          map[string]string
	Namespace       string
	ModelsNamespace string
	DaoNamespace    string
}

Jump to

Keyboard shortcuts

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