Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn interface { // Do sends a command to the server and returns the received reply. Do(commandName string, args ...interface{}) (reply interface{}, err error) // Close closes the connection. Close() error }
Conn iterface exposes Do and Close. It's a subset of redigo.Conn interface.
type ConnFactory ¶
ConnFactory is a function returning new connections
type Doer ¶
type Doer struct {
// contains filtered or unexported fields
}
Doer does the Do, reconnecting when necessary
func New ¶
func New(cf ConnFactory) *Doer
New returns new Doer which will use passed connection factory to estabilish new connections.
Click to show internal directories.
Click to hide internal directories.