Documentation
¶
Index ¶
- Constants
- Variables
- type MaxScale
- func (m *MaxScale) ClearServer(server, status string) error
- func (m *MaxScale) Close()
- func (m *MaxScale) Command(cmd string) error
- func (m *MaxScale) Connect() error
- func (m *MaxScale) GetMaxInfoMonitor() string
- func (m *MaxScale) GetMaxInfoMonitors(url string) ([]MonitorMaxinfo, error)
- func (m *MaxScale) GetMaxInfoServer(ip string, port int, matchserverport bool) (string, string, int)
- func (m *MaxScale) GetMaxInfoServers(url string) ([]ServerMaxinfo, error)
- func (m *MaxScale) GetMaxInfoStoppedMonitor() string
- func (m *MaxScale) GetMonitor() string
- func (m *MaxScale) GetServer(ip string, port string, matchserverport bool) (string, string, string)
- func (m *MaxScale) GetStoppedMonitor() string
- func (m *MaxScale) ListMonitors() ([]Monitor, error)
- func (m *MaxScale) ListServers() ([]Server, error)
- func (m *MaxScale) Response() ([]string, error)
- func (m *MaxScale) RestartMonitor(monitor string) error
- func (m *MaxScale) SetServer(server, status string) error
- func (m *MaxScale) ShowServers() ([]byte, error)
- func (m *MaxScale) ShutdownMonitor(monitor string) error
- type Monitor
- type MonitorMaxinfo
- type Server
- type ServerMaxinfo
Constants ¶
View Source
const ( // Error types ErrorNegotiation = "Incorrect maxscale protocol negotiation" ErrorReader = "Error reading from buffer" )
Variables ¶
View Source
var MonitorList = make([]Monitor, 0)
View Source
var MonitorMaxinfos = make([]MonitorMaxinfo, 0)
View Source
var ServerList = make([]Server, 0)
View Source
var ServerMaxinfos = make([]ServerMaxinfo, 0)
Functions ¶
This section is empty.
Types ¶
type MaxScale ¶
func (*MaxScale) ClearServer ¶
func (*MaxScale) GetMaxInfoMonitor ¶
func (*MaxScale) GetMaxInfoMonitors ¶
func (m *MaxScale) GetMaxInfoMonitors(url string) ([]MonitorMaxinfo, error)
func (*MaxScale) GetMaxInfoServer ¶
func (*MaxScale) GetMaxInfoServers ¶
func (m *MaxScale) GetMaxInfoServers(url string) ([]ServerMaxinfo, error)
func (*MaxScale) GetMaxInfoStoppedMonitor ¶
func (*MaxScale) GetMonitor ¶
func (*MaxScale) GetStoppedMonitor ¶
func (*MaxScale) ListMonitors ¶
func (*MaxScale) ListServers ¶
func (*MaxScale) RestartMonitor ¶
func (*MaxScale) ShowServers ¶
func (*MaxScale) ShutdownMonitor ¶
type MonitorMaxinfo ¶
Click to show internal directories.
Click to hide internal directories.