Back to godoc.org

Package proxy

v0.0.0-...-2e99afd
Latest Go to latest

The highest tagged major version is .

Published: Oct 10, 2015 | License: MIT | Module: github.com/siddontang/mixer

Index

Constants

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

Variables

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

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()

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier