proxy

package
v0.0.0-...-2e99afd Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2015 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Master = "master"
	Slave  = "slave"
)

Variables

View Source
var DEFAULT_CAPABILITY uint32 = CLIENT_LONG_PASSWORD | CLIENT_LONG_FLAG |
	CLIENT_CONNECT_WITH_DB | CLIENT_PROTOCOL_41 |
	CLIENT_TRANSACTIONS | CLIENT_SECURE_CONNECTION

Functions

This section is empty.

Types

type Conn

type Conn struct {
	sync.Mutex
	// contains filtered or unexported fields
}

client <-> proxy

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) Handshake

func (c *Conn) Handshake() error

func (*Conn) Run

func (c *Conn) Run()

type Node

type Node struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Node) String

func (n *Node) String() string

type Schema

type Schema struct {
	// contains filtered or unexported fields
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg *config.Config) (*Server, error)

func (*Server) Close

func (s *Server) Close()

func (*Server) DownMaster

func (s *Server) DownMaster(node string) error

func (*Server) DownSlave

func (s *Server) DownSlave(node string) error

func (*Server) Run

func (s *Server) Run() error

func (*Server) UpMaster

func (s *Server) UpMaster(node string, addr string) error

func (*Server) UpSlave

func (s *Server) UpSlave(node string, addr string) error

type Stmt

type Stmt struct {
	// contains filtered or unexported fields
}

func (*Stmt) ResetParams

func (s *Stmt) ResetParams()

Jump to

Keyboard shortcuts

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