Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrRspStub ¶
type ErrRspStub interface { WillReturnError(err error) // contains filtered or unexported methods }
type RedigoMock ¶
type RedigoMock interface { ExpectationsWereMet() error // Close closes the connection. ExpectClose() ErrRspStub // error // Err returns a non-nil value when the connection is not usable. ExpectInvokeErr() ErrRspStub // error // Do sends a command to the server and returns the received reply. ExpectDo(commandName string, args ...interface{}) ReplyRspStub // (reply interface{}, err error) // Send writes the command to the client's output buffer. ExpectSend(commandName string, args ...interface{}) ErrRspStub // error // Flush flushes the output buffer to the Redis server. ExpectFlush() ErrRspStub // Receive receives a single reply from the Redis server ExpectReceive() ReplyRspStub // (reply interface{}, err error) }
type ReplyRspStub ¶
type ReplyRspStub interface { ErrRspStub WillReply(reply interface{}) }
Click to show internal directories.
Click to hide internal directories.