Documentation
¶
Index ¶
- type ClientMock
- type ClusterClientMock
- type CustomMatch
- type ExpectedBool
- type ExpectedBoolSlice
- type ExpectedClusterLinks
- type ExpectedClusterShards
- type ExpectedClusterSlots
- type ExpectedCmd
- type ExpectedCommandsInfo
- type ExpectedDuration
- type ExpectedError
- type ExpectedFloat
- type ExpectedFloatSlice
- type ExpectedFunctionList
- type ExpectedGeoLocation
- type ExpectedGeoPos
- type ExpectedGeoSearchLocation
- type ExpectedInt
- type ExpectedIntSlice
- type ExpectedKeyFlags
- type ExpectedKeyValueSlice
- type ExpectedKeyValues
- type ExpectedLCS
- type ExpectedMapStringInt
- type ExpectedMapStringInterface
- type ExpectedMapStringSliceInterface
- type ExpectedMapStringString
- type ExpectedScan
- type ExpectedSlice
- type ExpectedSlowLog
- type ExpectedStatus
- type ExpectedString
- type ExpectedStringSlice
- type ExpectedStringStructMap
- type ExpectedTSTimestampValue
- type ExpectedTSTimestampValueSlice
- type ExpectedTime
- type ExpectedXAutoClaim
- type ExpectedXAutoClaimJustID
- type ExpectedXInfoConsumers
- type ExpectedXInfoGroups
- type ExpectedXInfoStream
- type ExpectedXInfoStreamFull
- type ExpectedXMessageSlice
- type ExpectedXPending
- type ExpectedXPendingExt
- type ExpectedXStreamSlice
- type ExpectedZSlice
- type ExpectedZSliceWithKey
- type ExpectedZWithKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientMock ¶
type ClientMock interface {
// contains filtered or unexported methods
}
func NewClientMock ¶
func NewClientMock() (*redis.Client, ClientMock)
type ClusterClientMock ¶
type ClusterClientMock interface {
// contains filtered or unexported methods
}
func NewClusterMock ¶
func NewClusterMock() (*redis.ClusterClient, ClusterClientMock)
type CustomMatch ¶
type CustomMatch func(expected, actual []interface{}) error
type ExpectedBool ¶
type ExpectedBool struct {
// contains filtered or unexported fields
}
func (*ExpectedBool) SetVal ¶
func (cmd *ExpectedBool) SetVal(val bool)
type ExpectedBoolSlice ¶
type ExpectedBoolSlice struct {
// contains filtered or unexported fields
}
func (*ExpectedBoolSlice) SetVal ¶
func (cmd *ExpectedBoolSlice) SetVal(val []bool)
type ExpectedClusterLinks ¶
type ExpectedClusterLinks struct {
// contains filtered or unexported fields
}
func (*ExpectedClusterLinks) SetVal ¶
func (cmd *ExpectedClusterLinks) SetVal(val []redis.ClusterLink)
type ExpectedClusterShards ¶
type ExpectedClusterShards struct {
// contains filtered or unexported fields
}
func (*ExpectedClusterShards) SetVal ¶
func (cmd *ExpectedClusterShards) SetVal(val []redis.ClusterShard)
type ExpectedClusterSlots ¶
type ExpectedClusterSlots struct {
// contains filtered or unexported fields
}
func (*ExpectedClusterSlots) SetVal ¶
func (cmd *ExpectedClusterSlots) SetVal(val []redis.ClusterSlot)
type ExpectedCmd ¶
type ExpectedCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedCmd) SetVal ¶
func (cmd *ExpectedCmd) SetVal(val interface{})
type ExpectedCommandsInfo ¶
type ExpectedCommandsInfo struct {
// contains filtered or unexported fields
}
func (*ExpectedCommandsInfo) SetVal ¶
func (cmd *ExpectedCommandsInfo) SetVal(val []*redis.CommandInfo)
type ExpectedDuration ¶
type ExpectedDuration struct {
// contains filtered or unexported fields
}
func (*ExpectedDuration) SetVal ¶
func (cmd *ExpectedDuration) SetVal(val time.Duration)
type ExpectedError ¶
type ExpectedError struct {
// contains filtered or unexported fields
}
type ExpectedFloat ¶
type ExpectedFloat struct {
// contains filtered or unexported fields
}
func (*ExpectedFloat) SetVal ¶
func (cmd *ExpectedFloat) SetVal(val float64)
type ExpectedFloatSlice ¶
type ExpectedFloatSlice struct {
// contains filtered or unexported fields
}
func (*ExpectedFloatSlice) SetVal ¶
func (cmd *ExpectedFloatSlice) SetVal(val []float64)
type ExpectedFunctionList ¶
type ExpectedFunctionList struct {
// contains filtered or unexported fields
}
func (*ExpectedFunctionList) SetVal ¶
func (cmd *ExpectedFunctionList) SetVal(val []redis.Library)
type ExpectedGeoLocation ¶
type ExpectedGeoLocation struct {
// contains filtered or unexported fields
}
func (*ExpectedGeoLocation) SetVal ¶
func (cmd *ExpectedGeoLocation) SetVal(val []redis.GeoLocation)
type ExpectedGeoPos ¶
type ExpectedGeoPos struct {
// contains filtered or unexported fields
}
func (*ExpectedGeoPos) SetVal ¶
func (cmd *ExpectedGeoPos) SetVal(val []*redis.GeoPos)
type ExpectedGeoSearchLocation ¶
type ExpectedGeoSearchLocation struct {
// contains filtered or unexported fields
}
func (*ExpectedGeoSearchLocation) SetVal ¶
func (cmd *ExpectedGeoSearchLocation) SetVal(val []redis.GeoLocation)
type ExpectedInt ¶
type ExpectedInt struct {
// contains filtered or unexported fields
}
func (*ExpectedInt) SetVal ¶
func (cmd *ExpectedInt) SetVal(val int64)
type ExpectedIntSlice ¶
type ExpectedIntSlice struct {
// contains filtered or unexported fields
}
func (*ExpectedIntSlice) SetVal ¶
func (cmd *ExpectedIntSlice) SetVal(val []int64)
type ExpectedKeyFlags ¶
type ExpectedKeyFlags struct {
// contains filtered or unexported fields
}
func (*ExpectedKeyFlags) SetVal ¶
func (cmd *ExpectedKeyFlags) SetVal(val []redis.KeyFlags)
type ExpectedKeyValueSlice ¶
type ExpectedKeyValueSlice struct {
// contains filtered or unexported fields
}
func (*ExpectedKeyValueSlice) SetVal ¶
func (cmd *ExpectedKeyValueSlice) SetVal(val []redis.KeyValue)
type ExpectedKeyValues ¶
type ExpectedKeyValues struct {
// contains filtered or unexported fields
}
func (*ExpectedKeyValues) SetVal ¶
func (cmd *ExpectedKeyValues) SetVal(key string, val []string)
type ExpectedLCS ¶
type ExpectedLCS struct {
// contains filtered or unexported fields
}
func (*ExpectedLCS) SetVal ¶
func (cmd *ExpectedLCS) SetVal(val *redis.LCSMatch)
type ExpectedMapStringInt ¶
type ExpectedMapStringInt struct {
// contains filtered or unexported fields
}
func (*ExpectedMapStringInt) SetVal ¶
func (cmd *ExpectedMapStringInt) SetVal(val map[string]int64)
type ExpectedMapStringInterface ¶
type ExpectedMapStringInterface struct {
// contains filtered or unexported fields
}
func (*ExpectedMapStringInterface) SetErr ¶
func (base *ExpectedMapStringInterface) SetErr(err error)
func (*ExpectedMapStringInterface) SetVal ¶
func (cmd *ExpectedMapStringInterface) SetVal(val map[string]interface{})
type ExpectedMapStringSliceInterface ¶
type ExpectedMapStringSliceInterface struct {
// contains filtered or unexported fields
}
func (*ExpectedMapStringSliceInterface) RedisNil ¶
func (base *ExpectedMapStringSliceInterface) RedisNil()
func (*ExpectedMapStringSliceInterface) SetErr ¶
func (base *ExpectedMapStringSliceInterface) SetErr(err error)
func (*ExpectedMapStringSliceInterface) SetVal ¶
func (cmd *ExpectedMapStringSliceInterface) SetVal(val map[string][]interface{})
type ExpectedMapStringString ¶
type ExpectedMapStringString struct {
// contains filtered or unexported fields
}
func (*ExpectedMapStringString) SetVal ¶
func (cmd *ExpectedMapStringString) SetVal(val map[string]string)
type ExpectedScan ¶
type ExpectedScan struct {
// contains filtered or unexported fields
}
func (*ExpectedScan) SetVal ¶
func (cmd *ExpectedScan) SetVal(page []string, cursor uint64)
type ExpectedSlice ¶
type ExpectedSlice struct {
// contains filtered or unexported fields
}
func (*ExpectedSlice) SetVal ¶
func (cmd *ExpectedSlice) SetVal(val []interface{})
type ExpectedSlowLog ¶
type ExpectedSlowLog struct {
// contains filtered or unexported fields
}
func (*ExpectedSlowLog) SetVal ¶
func (cmd *ExpectedSlowLog) SetVal(val []redis.SlowLog)
type ExpectedStatus ¶
type ExpectedStatus struct {
// contains filtered or unexported fields
}
func (*ExpectedStatus) SetVal ¶
func (cmd *ExpectedStatus) SetVal(val string)
type ExpectedString ¶
type ExpectedString struct {
// contains filtered or unexported fields
}
func (*ExpectedString) SetVal ¶
func (cmd *ExpectedString) SetVal(val string)
type ExpectedStringSlice ¶
type ExpectedStringSlice struct {
// contains filtered or unexported fields
}
func (*ExpectedStringSlice) SetVal ¶
func (cmd *ExpectedStringSlice) SetVal(val []string)
type ExpectedStringStructMap ¶
type ExpectedStringStructMap struct {
// contains filtered or unexported fields
}
func (*ExpectedStringStructMap) SetVal ¶
func (cmd *ExpectedStringStructMap) SetVal(val []string)
type ExpectedTSTimestampValue ¶
type ExpectedTSTimestampValue struct {
// contains filtered or unexported fields
}
func (*ExpectedTSTimestampValue) SetVal ¶
func (cmd *ExpectedTSTimestampValue) SetVal(val redis.TSTimestampValue)
type ExpectedTSTimestampValueSlice ¶
type ExpectedTSTimestampValueSlice struct {
// contains filtered or unexported fields
}
func (*ExpectedTSTimestampValueSlice) RedisNil ¶
func (base *ExpectedTSTimestampValueSlice) RedisNil()
func (*ExpectedTSTimestampValueSlice) SetErr ¶
func (base *ExpectedTSTimestampValueSlice) SetErr(err error)
func (*ExpectedTSTimestampValueSlice) SetVal ¶
func (cmd *ExpectedTSTimestampValueSlice) SetVal(val []redis.TSTimestampValue)
type ExpectedTime ¶
type ExpectedTime struct {
// contains filtered or unexported fields
}
func (*ExpectedTime) SetVal ¶
func (cmd *ExpectedTime) SetVal(val time.Time)
type ExpectedXAutoClaim ¶
type ExpectedXAutoClaim struct {
// contains filtered or unexported fields
}
type ExpectedXAutoClaimJustID ¶
type ExpectedXAutoClaimJustID struct {
// contains filtered or unexported fields
}
func (*ExpectedXAutoClaimJustID) SetVal ¶
func (cmd *ExpectedXAutoClaimJustID) SetVal(val []string, start string)
type ExpectedXInfoConsumers ¶
type ExpectedXInfoConsumers struct {
// contains filtered or unexported fields
}
func (*ExpectedXInfoConsumers) SetVal ¶
func (cmd *ExpectedXInfoConsumers) SetVal(val []redis.XInfoConsumer)
type ExpectedXInfoGroups ¶
type ExpectedXInfoGroups struct {
// contains filtered or unexported fields
}
func (*ExpectedXInfoGroups) SetVal ¶
func (cmd *ExpectedXInfoGroups) SetVal(val []redis.XInfoGroup)
type ExpectedXInfoStream ¶
type ExpectedXInfoStream struct {
// contains filtered or unexported fields
}
func (*ExpectedXInfoStream) SetVal ¶
func (cmd *ExpectedXInfoStream) SetVal(val *redis.XInfoStream)
type ExpectedXInfoStreamFull ¶
type ExpectedXInfoStreamFull struct {
// contains filtered or unexported fields
}
func (*ExpectedXInfoStreamFull) SetVal ¶
func (cmd *ExpectedXInfoStreamFull) SetVal(val *redis.XInfoStreamFull)
type ExpectedXMessageSlice ¶
type ExpectedXMessageSlice struct {
// contains filtered or unexported fields
}
func (*ExpectedXMessageSlice) SetVal ¶
func (cmd *ExpectedXMessageSlice) SetVal(val []redis.XMessage)
type ExpectedXPending ¶
type ExpectedXPending struct {
// contains filtered or unexported fields
}
func (*ExpectedXPending) SetVal ¶
func (cmd *ExpectedXPending) SetVal(val *redis.XPending)
type ExpectedXPendingExt ¶
type ExpectedXPendingExt struct {
// contains filtered or unexported fields
}
func (*ExpectedXPendingExt) SetVal ¶
func (cmd *ExpectedXPendingExt) SetVal(val []redis.XPendingExt)
type ExpectedXStreamSlice ¶
type ExpectedXStreamSlice struct {
// contains filtered or unexported fields
}
func (*ExpectedXStreamSlice) SetVal ¶
func (cmd *ExpectedXStreamSlice) SetVal(val []redis.XStream)
type ExpectedZSlice ¶
type ExpectedZSlice struct {
// contains filtered or unexported fields
}
func (*ExpectedZSlice) SetVal ¶
func (cmd *ExpectedZSlice) SetVal(val []redis.Z)
type ExpectedZSliceWithKey ¶
type ExpectedZSliceWithKey struct {
// contains filtered or unexported fields
}
type ExpectedZWithKey ¶
type ExpectedZWithKey struct {
// contains filtered or unexported fields
}
func (*ExpectedZWithKey) SetVal ¶
func (cmd *ExpectedZWithKey) SetVal(val *redis.ZWithKey)
Click to show internal directories.
Click to hide internal directories.