Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoServers = errors.New("k8s-memcache-selector: no servers configured or available")
)
Functions ¶
This section is empty.
Types ¶
type ServerList ¶
type ServerList struct {
// contains filtered or unexported fields
}
ServerList implements memcache ServerSelector interface. Under the hood kubernetes endpoints are used for discovery of memcache server ips. See https://github.com/bradfitz/gomemcache/blob/master/memcache/selector.go
func NewServerList ¶
func (*ServerList) Each ¶
func (ss *ServerList) Each(f func(net.Addr) error) error
Each iterates over each server calling the given function
func (*ServerList) PickServer ¶
func (ss *ServerList) PickServer(key string) (net.Addr, error)
Click to show internal directories.
Click to hide internal directories.