Documentation ¶
Overview ¶
Package dbconfigs is reusable by vt tools to load the db configs file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCommonFlags ¶
Types ¶
type DBConfig ¶
type DBConfig struct { Host string `json:"host"` Port int `json:"port"` Uname string `json:"uname"` Pass string `json:"pass"` DbName string `json:"dbname"` UnixSocket string `json:"unix_socket"` Charset string `json:"charset"` Memcache string `json:"memcache"` 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"` Memcache string `json:"memcache"` }
Click to show internal directories.
Click to hide internal directories.