jcbaseGo

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 6 Imported by: 1

README

jcbaseGo

自用开发工具包

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = configStruct{
	DbStruct{
		DriverName:  "mysql",
		Protocol:    "tcp",
		Host:        "localhost",
		Port:        "3306",
		Dbname:      "dbname",
		Username:    "root",
		Password:    "",
		Charset:     "utf8mb4",
		TablePrefix: "",
	},
	RedisStruct{
		Host:     "localhost",
		Port:     "6379",
		Password: "",
		Db:       "0",
	},
	RepositoryStruct{
		Dir:        "./project/app/",
		Branch:     "master",
		RemoteName: "origin",
		RemoteURL:  "git@github.com:jcbowen/jcbaseGo.git",
	},
}

Config 为Config添加默认数据

Functions

This section is empty.

Types

type DbStruct added in v0.2.1

type DbStruct struct {
	DriverName  string `json:"driverName"`  // 驱动类型
	Protocol    string `json:"protocol"`    // 协议
	Host        string `json:"host"`        // 数据库地址
	Port        string `json:"port"`        // 数据库端口号
	Dbname      string `json:"dbname"`      // 表名称
	Username    string `json:"username"`    // 用户名
	Password    string `json:"password"`    // 密码
	Charset     string `json:"charset"`     // 编码
	TablePrefix string `json:"tablePrefix"` // 表前缀
}

type RedisStruct added in v0.2.1

type RedisStruct struct {
	Host     string `json:"host"`     // redis地址
	Port     string `json:"port"`     // redis端口号
	Password string `json:"password"` // redis密码
	Db       string `json:"db"`       // redis数据库
}

type RepositoryStruct added in v0.2.1

type RepositoryStruct struct {
	Dir        string `json:"dir"`        // 本地仓库目录
	Branch     string `json:"branch"`     // 远程仓库分支
	RemoteName string `json:"remoteName"` // 远程仓库名称
	RemoteURL  string `json:"remoteURL"`  // 远程仓库地址
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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