replica

package
v0.0.0-...-19d93f5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const OP_REP = 0x02
View Source
const OP_SET = 0x01

Variables

View Source
var ConnPoolAvailWaitTime = time.Millisecond

ConnPoolAvailWaitTime is the amount of time to wait for an existing connection from the pool before considering the creation of a new one.

View Source
var ConnPoolCallback func(host string, source string, start time.Time, err error)

ConnPoolTimeout is notified whenever connections are acquired from a pool.

View Source
var ConnPoolTimeout = time.Hour * 24 * 30

Default timeout for retrieving a connection from the pool.

View Source
var TimeoutError = errors.New("timeout waiting to build connection")

Error raised when a connection can't be retrieved from a pool.

Functions

func GetMyIp

func GetMyIp() []string

func Init

func Init(url string)

func IsOwner

func IsOwner(req *gomemcached.MCRequest) bool

func ProxyRemoteRead

func ProxyRemoteRead(req *gomemcached.MCRequest) *gomemcached.MCResponse

we are not the master of this node, so proxy

func ProxyRemoteWrite

func ProxyRemoteWrite(req *gomemcached.MCRequest)

we are not the master of this node, so proxy

func QueueRemoteWrite

func QueueRemoteWrite(req *gomemcached.MCRequest)

return true if data needs to be written here

Types

This section is empty.

Jump to

Keyboard shortcuts

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