maxscale

package
v0.0.0-...-f0721d9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: GPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

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

type MaxScale struct {
	Host string
	Port string
	User string
	Pass string
	Conn net.Conn
}

func (*MaxScale) ClearServer

func (m *MaxScale) ClearServer(server, status string) error

func (*MaxScale) Close

func (m *MaxScale) Close()

func (*MaxScale) Command

func (m *MaxScale) Command(cmd string) error

func (*MaxScale) Connect

func (m *MaxScale) Connect() error

func (*MaxScale) GetMaxInfoMonitor

func (m *MaxScale) GetMaxInfoMonitor() string

func (*MaxScale) GetMaxInfoMonitors

func (m *MaxScale) GetMaxInfoMonitors(url string) ([]MonitorMaxinfo, error)

func (*MaxScale) GetMaxInfoServer

func (m *MaxScale) GetMaxInfoServer(ip string, port int, matchserverport bool) (string, string, int)

func (*MaxScale) GetMaxInfoServers

func (m *MaxScale) GetMaxInfoServers(url string) ([]ServerMaxinfo, error)

func (*MaxScale) GetMaxInfoStoppedMonitor

func (m *MaxScale) GetMaxInfoStoppedMonitor() string

func (*MaxScale) GetMonitor

func (m *MaxScale) GetMonitor() string

func (*MaxScale) GetServer

func (m *MaxScale) GetServer(ip string, port string, matchserverport bool) (string, string, string)

func (*MaxScale) GetStoppedMonitor

func (m *MaxScale) GetStoppedMonitor() string

func (*MaxScale) ListMonitors

func (m *MaxScale) ListMonitors() ([]Monitor, error)

func (*MaxScale) ListServers

func (m *MaxScale) ListServers() ([]Server, error)

func (*MaxScale) Response

func (m *MaxScale) Response() ([]string, error)

func (*MaxScale) RestartMonitor

func (m *MaxScale) RestartMonitor(monitor string) error

func (*MaxScale) SetServer

func (m *MaxScale) SetServer(server, status string) error

func (*MaxScale) ShowServers

func (m *MaxScale) ShowServers() ([]byte, error)

func (*MaxScale) ShutdownMonitor

func (m *MaxScale) ShutdownMonitor(monitor string) error

type Monitor

type Monitor struct {
	Monitor string
	Status  string
}

type MonitorMaxinfo

type MonitorMaxinfo struct {
	Monitor string
	Status  string
}

type Server

type Server struct {
	Server      string
	Address     string
	Port        string
	Connections string
	Status      string
}

type ServerMaxinfo

type ServerMaxinfo struct {
	Server      string
	Address     string
	Port        int
	Connections int
	Status      string
}

Jump to

Keyboard shortcuts

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