Documentation ¶
Overview ¶
Package dbconfigs is reusable by vt tools to load the db configs file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDBConfigs = DBConfigs{ App: DBConfig{ConnectionParams: mysql.ConnectionParams{Uname: "vt_app", Charset: "utf8"}}, Dba: mysql.ConnectionParams{Uname: "vt_dba", Charset: "utf8"}, Repl: mysql.ConnectionParams{Uname: "vt_repl", Charset: "utf8"}, }
Offer a default config.
Functions ¶
func GetSubprocessFlags ¶
func GetSubprocessFlags() []string
func RegisterAppFlags ¶
func RegisterCommonFlags ¶
func RegisterCommonFlags() *string
Types ¶
type DBConfig ¶
type DBConfig struct { mysql.ConnectionParams Keyspace string `json:"keyspace"` Shard string `json:"shard"` }
func (DBConfig) MysqlParams ¶
func (d DBConfig) MysqlParams() mysql.ConnectionParams
type DBConfigs ¶
type DBConfigs struct { App DBConfig `json:"app"` Dba mysql.ConnectionParams `json:"dba"` Repl mysql.ConnectionParams `json:"repl"` }
Click to show internal directories.
Click to hide internal directories.