Documentation ¶
Index ¶
- type ProxySQL
- func (psql *ProxySQL) AddOfflineServer(host string, port string) error
- func (psql *ProxySQL) AddServer(host string, port string) error
- func (psql *ProxySQL) AddUser(User string, Password string) error
- func (psql *ProxySQL) Connect() error
- func (psql *ProxySQL) GetHostsRuntime() (string, error)
- func (psql *ProxySQL) GetStatsForHostRead(host string, port string) (string, string, int, int, int, int, error)
- func (psql *ProxySQL) GetStatsForHostWrite(host string, port string) (string, string, int, int, int, int, error)
- func (psql *ProxySQL) GetVersion() string
- func (psql *ProxySQL) LoadServersToRuntime() error
- func (psql *ProxySQL) SetOffline(host string, port string) error
- func (psql *ProxySQL) SetOfflineSoft(host string, port string) error
- func (psql *ProxySQL) SetOnline(host string, port string) error
- func (psql *ProxySQL) SetReader(host string, port string) error
- func (psql *ProxySQL) SetWriter(host string, port string) error
- func (psql *ProxySQL) Truncate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxySQL ¶
type ProxySQL struct { Connection *sqlx.DB User string Password string Port string Host string WriterHG string ReaderHG string }
func (*ProxySQL) AddOfflineServer ¶
func (*ProxySQL) GetHostsRuntime ¶
func (*ProxySQL) GetStatsForHostRead ¶
func (*ProxySQL) GetStatsForHostWrite ¶
func (*ProxySQL) GetVersion ¶
func (*ProxySQL) LoadServersToRuntime ¶
func (*ProxySQL) SetOfflineSoft ¶
Click to show internal directories.
Click to hide internal directories.