proxysql

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

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 (psql *ProxySQL) AddOfflineServer(host string, port string) error

func (*ProxySQL) AddServer

func (psql *ProxySQL) AddServer(host string, port string) error

func (*ProxySQL) AddUser

func (psql *ProxySQL) AddUser(User string, Password string) error

func (*ProxySQL) Connect

func (psql *ProxySQL) Connect() error

func (*ProxySQL) GetHostsRuntime

func (psql *ProxySQL) GetHostsRuntime() (string, error)

func (*ProxySQL) GetStatsForHostRead

func (psql *ProxySQL) GetStatsForHostRead(host string, port string) (string, string, int, int, int, int, error)

func (*ProxySQL) GetStatsForHostWrite

func (psql *ProxySQL) GetStatsForHostWrite(host string, port string) (string, string, int, int, int, int, error)

func (*ProxySQL) GetVersion

func (psql *ProxySQL) GetVersion() string

func (*ProxySQL) LoadServersToRuntime

func (psql *ProxySQL) LoadServersToRuntime() error

func (*ProxySQL) SetOffline

func (psql *ProxySQL) SetOffline(host string, port string) error

func (*ProxySQL) SetOfflineSoft

func (psql *ProxySQL) SetOfflineSoft(host string, port string) error

func (*ProxySQL) SetOnline

func (psql *ProxySQL) SetOnline(host string, port string) error

func (*ProxySQL) SetReader

func (psql *ProxySQL) SetReader(host string, port string) error

func (*ProxySQL) SetWriter

func (psql *ProxySQL) SetWriter(host string, port string) error

func (*ProxySQL) Truncate

func (psql *ProxySQL) Truncate() error

Jump to

Keyboard shortcuts

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