Documentation
¶
Index ¶
- func AppendArg(b []byte, v interface{}) []byte
- func BytesToString(b []byte) string
- func HScan(dst interface{}, keys []interface{}, vals []interface{}) error
- func Scan(b []byte, v interface{}) error
- func ScanSlice(data []string, slice interface{}) error
- func StringToBytes(s string) []byte
- type ClientMock
- type ClusterClientMock
- type CustomMatch
- type ExpectedAggregateCmd
- func (cmd *ExpectedAggregateCmd) RawResult() (interface{}, error)
- func (cmd *ExpectedAggregateCmd) RawVal() interface{}
- func (base *ExpectedAggregateCmd) RedisNil()
- func (cmd *ExpectedAggregateCmd) Result() (*redis.FTAggregateResult, error)
- func (base *ExpectedAggregateCmd) SetErr(err error)
- func (cmd *ExpectedAggregateCmd) SetVal(val *redis.FTAggregateResult)
- func (cmd *ExpectedAggregateCmd) String() string
- func (cmd *ExpectedAggregateCmd) Val() *redis.FTAggregateResult
- type ExpectedBool
- type ExpectedBoolSlice
- type ExpectedClusterLinks
- type ExpectedClusterShards
- type ExpectedClusterSlots
- type ExpectedCmd
- type ExpectedCommandsInfo
- type ExpectedDuration
- type ExpectedError
- type ExpectedFTInfoCmd
- func (cmd *ExpectedFTInfoCmd) RawResult() (interface{}, error)
- func (cmd *ExpectedFTInfoCmd) RawVal() interface{}
- func (base *ExpectedFTInfoCmd) RedisNil()
- func (cmd *ExpectedFTInfoCmd) Result() (redis.FTInfoResult, error)
- func (base *ExpectedFTInfoCmd) SetErr(err error)
- func (cmd *ExpectedFTInfoCmd) SetVal(val redis.FTInfoResult)
- func (cmd *ExpectedFTInfoCmd) String() string
- func (cmd *ExpectedFTInfoCmd) Val() redis.FTInfoResult
- type ExpectedFTSearchCmd
- func (cmd *ExpectedFTSearchCmd) RawResult() (interface{}, error)
- func (cmd *ExpectedFTSearchCmd) RawVal() interface{}
- func (base *ExpectedFTSearchCmd) RedisNil()
- func (cmd *ExpectedFTSearchCmd) Result() (redis.FTSearchResult, error)
- func (base *ExpectedFTSearchCmd) SetErr(err error)
- func (cmd *ExpectedFTSearchCmd) SetVal(val redis.FTSearchResult)
- func (cmd *ExpectedFTSearchCmd) String() string
- func (cmd *ExpectedFTSearchCmd) Val() redis.FTSearchResult
- type ExpectedFTSpellCheckCmd
- func (cmd *ExpectedFTSpellCheckCmd) RawResult() (interface{}, error)
- func (cmd *ExpectedFTSpellCheckCmd) RawVal() interface{}
- func (base *ExpectedFTSpellCheckCmd) RedisNil()
- func (cmd *ExpectedFTSpellCheckCmd) Result() ([]redis.SpellCheckResult, error)
- func (base *ExpectedFTSpellCheckCmd) SetErr(err error)
- func (cmd *ExpectedFTSpellCheckCmd) SetVal(val []redis.SpellCheckResult)
- func (cmd *ExpectedFTSpellCheckCmd) String() string
- func (cmd *ExpectedFTSpellCheckCmd) Val() []redis.SpellCheckResult
- type ExpectedFTSynDumpCmd
- func (cmd *ExpectedFTSynDumpCmd) RawResult() (interface{}, error)
- func (cmd *ExpectedFTSynDumpCmd) RawVal() interface{}
- func (base *ExpectedFTSynDumpCmd) RedisNil()
- func (cmd *ExpectedFTSynDumpCmd) Result() ([]redis.FTSynDumpResult, error)
- func (base *ExpectedFTSynDumpCmd) SetErr(err error)
- func (cmd *ExpectedFTSynDumpCmd) SetVal(val []redis.FTSynDumpResult)
- func (cmd *ExpectedFTSynDumpCmd) String() string
- func (cmd *ExpectedFTSynDumpCmd) Val() []redis.FTSynDumpResult
- type ExpectedFloat
- type ExpectedFloatSlice
- type ExpectedFunctionList
- type ExpectedGeoLocation
- type ExpectedGeoPos
- type ExpectedGeoSearchLocation
- type ExpectedInt
- type ExpectedIntCmd
- func (base *ExpectedIntCmd) RedisNil()
- func (cmd *ExpectedIntCmd) Result() (int64, error)
- func (base *ExpectedIntCmd) SetErr(err error)
- func (cmd *ExpectedIntCmd) SetVal(val int64)
- func (cmd *ExpectedIntCmd) String() string
- func (cmd *ExpectedIntCmd) Uint64() (uint64, error)
- func (cmd *ExpectedIntCmd) Val() int64
- type ExpectedIntPointerSliceCmd
- func (base *ExpectedIntPointerSliceCmd) RedisNil()
- func (cmd *ExpectedIntPointerSliceCmd) Result() ([]*int64, error)
- func (base *ExpectedIntPointerSliceCmd) SetErr(err error)
- func (cmd *ExpectedIntPointerSliceCmd) SetVal(val []*int64)
- func (cmd *ExpectedIntPointerSliceCmd) String() string
- func (cmd *ExpectedIntPointerSliceCmd) Val() []*int64
- type ExpectedIntSlice
- type ExpectedIntSliceCmd
- type ExpectedJSONCmd
- func (cmd *ExpectedJSONCmd) Expanded() (interface{}, error)
- func (base *ExpectedJSONCmd) RedisNil()
- func (cmd *ExpectedJSONCmd) Result() (string, error)
- func (base *ExpectedJSONCmd) SetErr(err error)
- func (cmd *ExpectedJSONCmd) SetVal(val string)
- func (cmd *ExpectedJSONCmd) String() string
- func (cmd *ExpectedJSONCmd) Val() string
- type ExpectedJSONSliceCmd
- func (base *ExpectedJSONSliceCmd) RedisNil()
- func (cmd *ExpectedJSONSliceCmd) Result() ([]interface{}, error)
- func (base *ExpectedJSONSliceCmd) SetErr(err error)
- func (cmd *ExpectedJSONSliceCmd) SetVal(val []interface{})
- func (cmd *ExpectedJSONSliceCmd) String() string
- func (cmd *ExpectedJSONSliceCmd) Val() []interface{}
- type ExpectedKeyFlags
- type ExpectedKeyValueSlice
- type ExpectedKeyValues
- type ExpectedLCS
- type ExpectedMapMapStringInterfaceCmd
- func (base *ExpectedMapMapStringInterfaceCmd) RedisNil()
- func (cmd *ExpectedMapMapStringInterfaceCmd) Result() (map[string]interface{}, error)
- func (base *ExpectedMapMapStringInterfaceCmd) SetErr(err error)
- func (cmd *ExpectedMapMapStringInterfaceCmd) SetVal(val map[string]interface{})
- func (cmd *ExpectedMapMapStringInterfaceCmd) String() string
- func (cmd *ExpectedMapMapStringInterfaceCmd) Val() map[string]interface{}
- type ExpectedMapStringInt
- type ExpectedMapStringInterface
- type ExpectedMapStringInterfaceCmd
- func (base *ExpectedMapStringInterfaceCmd) RedisNil()
- func (cmd *ExpectedMapStringInterfaceCmd) Result() (map[string]interface{}, error)
- func (base *ExpectedMapStringInterfaceCmd) SetErr(err error)
- func (cmd *ExpectedMapStringInterfaceCmd) SetVal(val map[string]interface{})
- func (cmd *ExpectedMapStringInterfaceCmd) String() string
- func (cmd *ExpectedMapStringInterfaceCmd) Val() map[string]interface{}
- type ExpectedMapStringSliceInterface
- type ExpectedMapStringString
- type ExpectedScan
- type ExpectedSlice
- type ExpectedSliceCmd
- func (base *ExpectedSliceCmd) RedisNil()
- func (cmd *ExpectedSliceCmd) Result() ([]interface{}, error)
- func (cmd *ExpectedSliceCmd) Scan(dst interface{}) error
- func (base *ExpectedSliceCmd) SetErr(err error)
- func (cmd *ExpectedSliceCmd) SetVal(val []interface{})
- func (cmd *ExpectedSliceCmd) String() string
- func (cmd *ExpectedSliceCmd) Val() []interface{}
- type ExpectedSlowLog
- type ExpectedStatus
- type ExpectedStatusCmd
- func (cmd *ExpectedStatusCmd) Bytes() ([]byte, error)
- func (base *ExpectedStatusCmd) RedisNil()
- func (cmd *ExpectedStatusCmd) Result() (string, error)
- func (base *ExpectedStatusCmd) SetErr(err error)
- func (cmd *ExpectedStatusCmd) SetVal(val string)
- func (cmd *ExpectedStatusCmd) String() string
- func (cmd *ExpectedStatusCmd) Val() string
- type ExpectedString
- type ExpectedStringCmd
- func (cmd *ExpectedStringCmd) Bool() (bool, error)
- func (cmd *ExpectedStringCmd) Bytes() ([]byte, error)
- func (cmd *ExpectedStringCmd) Float32() (float32, error)
- func (cmd *ExpectedStringCmd) Float64() (float64, error)
- func (cmd *ExpectedStringCmd) Int() (int, error)
- func (cmd *ExpectedStringCmd) Int64() (int64, error)
- func (base *ExpectedStringCmd) RedisNil()
- func (cmd *ExpectedStringCmd) Result() (string, error)
- func (cmd *ExpectedStringCmd) Scan(val interface{}) error
- func (base *ExpectedStringCmd) SetErr(err error)
- func (cmd *ExpectedStringCmd) SetVal(val string)
- func (cmd *ExpectedStringCmd) String() string
- func (cmd *ExpectedStringCmd) Time() (time.Time, error)
- func (cmd *ExpectedStringCmd) Uint64() (uint64, error)
- func (cmd *ExpectedStringCmd) Val() string
- type ExpectedStringSlice
- type ExpectedStringSliceCmd
- func (base *ExpectedStringSliceCmd) RedisNil()
- func (cmd *ExpectedStringSliceCmd) Result() ([]string, error)
- func (cmd *ExpectedStringSliceCmd) ScanSlice(container interface{}) error
- func (base *ExpectedStringSliceCmd) SetErr(err error)
- func (cmd *ExpectedStringSliceCmd) SetVal(val []string)
- func (cmd *ExpectedStringSliceCmd) String() string
- func (cmd *ExpectedStringSliceCmd) Val() []string
- 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
- type Scanner
- type StructValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
func StringToBytes ¶
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 ExpectedAggregateCmd ¶ added in v9.4.0
type ExpectedAggregateCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedAggregateCmd) RawResult ¶ added in v9.4.0
func (cmd *ExpectedAggregateCmd) RawResult() (interface{}, error)
func (*ExpectedAggregateCmd) RawVal ¶ added in v9.4.0
func (cmd *ExpectedAggregateCmd) RawVal() interface{}
func (*ExpectedAggregateCmd) RedisNil ¶ added in v9.4.0
func (base *ExpectedAggregateCmd) RedisNil()
func (*ExpectedAggregateCmd) Result ¶ added in v9.4.0
func (cmd *ExpectedAggregateCmd) Result() (*redis.FTAggregateResult, error)
func (*ExpectedAggregateCmd) SetErr ¶ added in v9.4.0
func (base *ExpectedAggregateCmd) SetErr(err error)
func (*ExpectedAggregateCmd) SetVal ¶ added in v9.4.0
func (cmd *ExpectedAggregateCmd) SetVal(val *redis.FTAggregateResult)
func (*ExpectedAggregateCmd) String ¶ added in v9.4.0
func (cmd *ExpectedAggregateCmd) String() string
func (*ExpectedAggregateCmd) Val ¶ added in v9.4.0
func (cmd *ExpectedAggregateCmd) Val() *redis.FTAggregateResult
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 ExpectedFTInfoCmd ¶ added in v9.4.0
type ExpectedFTInfoCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedFTInfoCmd) RawResult ¶ added in v9.4.0
func (cmd *ExpectedFTInfoCmd) RawResult() (interface{}, error)
func (*ExpectedFTInfoCmd) RawVal ¶ added in v9.4.0
func (cmd *ExpectedFTInfoCmd) RawVal() interface{}
func (*ExpectedFTInfoCmd) Result ¶ added in v9.4.0
func (cmd *ExpectedFTInfoCmd) Result() (redis.FTInfoResult, error)
func (*ExpectedFTInfoCmd) SetVal ¶ added in v9.4.0
func (cmd *ExpectedFTInfoCmd) SetVal(val redis.FTInfoResult)
func (*ExpectedFTInfoCmd) String ¶ added in v9.4.0
func (cmd *ExpectedFTInfoCmd) String() string
func (*ExpectedFTInfoCmd) Val ¶ added in v9.4.0
func (cmd *ExpectedFTInfoCmd) Val() redis.FTInfoResult
type ExpectedFTSearchCmd ¶ added in v9.4.0
type ExpectedFTSearchCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedFTSearchCmd) RawResult ¶ added in v9.4.0
func (cmd *ExpectedFTSearchCmd) RawResult() (interface{}, error)
func (*ExpectedFTSearchCmd) RawVal ¶ added in v9.4.0
func (cmd *ExpectedFTSearchCmd) RawVal() interface{}
func (*ExpectedFTSearchCmd) Result ¶ added in v9.4.0
func (cmd *ExpectedFTSearchCmd) Result() (redis.FTSearchResult, error)
func (*ExpectedFTSearchCmd) SetErr ¶ added in v9.4.0
func (base *ExpectedFTSearchCmd) SetErr(err error)
func (*ExpectedFTSearchCmd) SetVal ¶ added in v9.4.0
func (cmd *ExpectedFTSearchCmd) SetVal(val redis.FTSearchResult)
func (*ExpectedFTSearchCmd) String ¶ added in v9.4.0
func (cmd *ExpectedFTSearchCmd) String() string
func (*ExpectedFTSearchCmd) Val ¶ added in v9.4.0
func (cmd *ExpectedFTSearchCmd) Val() redis.FTSearchResult
type ExpectedFTSpellCheckCmd ¶ added in v9.4.0
type ExpectedFTSpellCheckCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedFTSpellCheckCmd) RawResult ¶ added in v9.4.0
func (cmd *ExpectedFTSpellCheckCmd) RawResult() (interface{}, error)
func (*ExpectedFTSpellCheckCmd) RawVal ¶ added in v9.4.0
func (cmd *ExpectedFTSpellCheckCmd) RawVal() interface{}
func (*ExpectedFTSpellCheckCmd) RedisNil ¶ added in v9.4.0
func (base *ExpectedFTSpellCheckCmd) RedisNil()
func (*ExpectedFTSpellCheckCmd) Result ¶ added in v9.4.0
func (cmd *ExpectedFTSpellCheckCmd) Result() ([]redis.SpellCheckResult, error)
func (*ExpectedFTSpellCheckCmd) SetErr ¶ added in v9.4.0
func (base *ExpectedFTSpellCheckCmd) SetErr(err error)
func (*ExpectedFTSpellCheckCmd) SetVal ¶ added in v9.4.0
func (cmd *ExpectedFTSpellCheckCmd) SetVal(val []redis.SpellCheckResult)
func (*ExpectedFTSpellCheckCmd) String ¶ added in v9.4.0
func (cmd *ExpectedFTSpellCheckCmd) String() string
func (*ExpectedFTSpellCheckCmd) Val ¶ added in v9.4.0
func (cmd *ExpectedFTSpellCheckCmd) Val() []redis.SpellCheckResult
type ExpectedFTSynDumpCmd ¶ added in v9.4.0
type ExpectedFTSynDumpCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedFTSynDumpCmd) RawResult ¶ added in v9.4.0
func (cmd *ExpectedFTSynDumpCmd) RawResult() (interface{}, error)
func (*ExpectedFTSynDumpCmd) RawVal ¶ added in v9.4.0
func (cmd *ExpectedFTSynDumpCmd) RawVal() interface{}
func (*ExpectedFTSynDumpCmd) RedisNil ¶ added in v9.4.0
func (base *ExpectedFTSynDumpCmd) RedisNil()
func (*ExpectedFTSynDumpCmd) Result ¶ added in v9.4.0
func (cmd *ExpectedFTSynDumpCmd) Result() ([]redis.FTSynDumpResult, error)
func (*ExpectedFTSynDumpCmd) SetErr ¶ added in v9.4.0
func (base *ExpectedFTSynDumpCmd) SetErr(err error)
func (*ExpectedFTSynDumpCmd) SetVal ¶ added in v9.4.0
func (cmd *ExpectedFTSynDumpCmd) SetVal(val []redis.FTSynDumpResult)
func (*ExpectedFTSynDumpCmd) String ¶ added in v9.4.0
func (cmd *ExpectedFTSynDumpCmd) String() string
func (*ExpectedFTSynDumpCmd) Val ¶ added in v9.4.0
func (cmd *ExpectedFTSynDumpCmd) Val() []redis.FTSynDumpResult
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 ExpectedIntCmd ¶
type ExpectedIntCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedIntCmd) Result ¶
func (cmd *ExpectedIntCmd) Result() (int64, error)
func (*ExpectedIntCmd) SetVal ¶
func (cmd *ExpectedIntCmd) SetVal(val int64)
func (*ExpectedIntCmd) String ¶
func (cmd *ExpectedIntCmd) String() string
func (*ExpectedIntCmd) Uint64 ¶
func (cmd *ExpectedIntCmd) Uint64() (uint64, error)
func (*ExpectedIntCmd) Val ¶
func (cmd *ExpectedIntCmd) Val() int64
type ExpectedIntPointerSliceCmd ¶
type ExpectedIntPointerSliceCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedIntPointerSliceCmd) Result ¶
func (cmd *ExpectedIntPointerSliceCmd) Result() ([]*int64, error)
func (*ExpectedIntPointerSliceCmd) SetErr ¶
func (base *ExpectedIntPointerSliceCmd) SetErr(err error)
func (*ExpectedIntPointerSliceCmd) SetVal ¶
func (cmd *ExpectedIntPointerSliceCmd) SetVal(val []*int64)
func (*ExpectedIntPointerSliceCmd) String ¶
func (cmd *ExpectedIntPointerSliceCmd) String() string
func (*ExpectedIntPointerSliceCmd) Val ¶
func (cmd *ExpectedIntPointerSliceCmd) Val() []*int64
type ExpectedIntSlice ¶
type ExpectedIntSlice struct {
// contains filtered or unexported fields
}
func (*ExpectedIntSlice) SetVal ¶
func (cmd *ExpectedIntSlice) SetVal(val []int64)
type ExpectedIntSliceCmd ¶
type ExpectedIntSliceCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedIntSliceCmd) Result ¶
func (cmd *ExpectedIntSliceCmd) Result() ([]int64, error)
func (*ExpectedIntSliceCmd) SetVal ¶
func (cmd *ExpectedIntSliceCmd) SetVal(val []int64)
func (*ExpectedIntSliceCmd) String ¶
func (cmd *ExpectedIntSliceCmd) String() string
func (*ExpectedIntSliceCmd) Val ¶
func (cmd *ExpectedIntSliceCmd) Val() []int64
type ExpectedJSONCmd ¶
type ExpectedJSONCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedJSONCmd) Expanded ¶
func (cmd *ExpectedJSONCmd) Expanded() (interface{}, error)
func (*ExpectedJSONCmd) Result ¶
func (cmd *ExpectedJSONCmd) Result() (string, error)
func (*ExpectedJSONCmd) SetVal ¶
func (cmd *ExpectedJSONCmd) SetVal(val string)
func (*ExpectedJSONCmd) String ¶
func (cmd *ExpectedJSONCmd) String() string
func (*ExpectedJSONCmd) Val ¶
func (cmd *ExpectedJSONCmd) Val() string
type ExpectedJSONSliceCmd ¶
type ExpectedJSONSliceCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedJSONSliceCmd) Result ¶
func (cmd *ExpectedJSONSliceCmd) Result() ([]interface{}, error)
func (*ExpectedJSONSliceCmd) SetVal ¶
func (cmd *ExpectedJSONSliceCmd) SetVal(val []interface{})
func (*ExpectedJSONSliceCmd) String ¶
func (cmd *ExpectedJSONSliceCmd) String() string
func (*ExpectedJSONSliceCmd) Val ¶
func (cmd *ExpectedJSONSliceCmd) Val() []interface{}
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 ExpectedMapMapStringInterfaceCmd ¶ added in v9.4.0
type ExpectedMapMapStringInterfaceCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedMapMapStringInterfaceCmd) RedisNil ¶ added in v9.4.0
func (base *ExpectedMapMapStringInterfaceCmd) RedisNil()
func (*ExpectedMapMapStringInterfaceCmd) Result ¶ added in v9.4.0
func (cmd *ExpectedMapMapStringInterfaceCmd) Result() (map[string]interface{}, error)
func (*ExpectedMapMapStringInterfaceCmd) SetErr ¶ added in v9.4.0
func (base *ExpectedMapMapStringInterfaceCmd) SetErr(err error)
func (*ExpectedMapMapStringInterfaceCmd) SetVal ¶ added in v9.4.0
func (cmd *ExpectedMapMapStringInterfaceCmd) SetVal(val map[string]interface{})
func (*ExpectedMapMapStringInterfaceCmd) String ¶ added in v9.4.0
func (cmd *ExpectedMapMapStringInterfaceCmd) String() string
func (*ExpectedMapMapStringInterfaceCmd) Val ¶ added in v9.4.0
func (cmd *ExpectedMapMapStringInterfaceCmd) Val() map[string]interface{}
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 ExpectedMapStringInterfaceCmd ¶ added in v9.4.0
type ExpectedMapStringInterfaceCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedMapStringInterfaceCmd) RedisNil ¶ added in v9.4.0
func (base *ExpectedMapStringInterfaceCmd) RedisNil()
func (*ExpectedMapStringInterfaceCmd) Result ¶ added in v9.4.0
func (cmd *ExpectedMapStringInterfaceCmd) Result() (map[string]interface{}, error)
func (*ExpectedMapStringInterfaceCmd) SetErr ¶ added in v9.4.0
func (base *ExpectedMapStringInterfaceCmd) SetErr(err error)
func (*ExpectedMapStringInterfaceCmd) SetVal ¶ added in v9.4.0
func (cmd *ExpectedMapStringInterfaceCmd) SetVal(val map[string]interface{})
func (*ExpectedMapStringInterfaceCmd) String ¶ added in v9.4.0
func (cmd *ExpectedMapStringInterfaceCmd) String() string
func (*ExpectedMapStringInterfaceCmd) Val ¶ added in v9.4.0
func (cmd *ExpectedMapStringInterfaceCmd) 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 ExpectedSliceCmd ¶
type ExpectedSliceCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedSliceCmd) Result ¶
func (cmd *ExpectedSliceCmd) Result() ([]interface{}, error)
func (*ExpectedSliceCmd) Scan ¶
func (cmd *ExpectedSliceCmd) Scan(dst interface{}) error
Scan scans the results from the map into a destination struct. The map keys are matched in the Redis struct fields by the `redis:"field"` tag.
func (*ExpectedSliceCmd) SetVal ¶
func (cmd *ExpectedSliceCmd) SetVal(val []interface{})
func (*ExpectedSliceCmd) String ¶
func (cmd *ExpectedSliceCmd) String() string
func (*ExpectedSliceCmd) Val ¶
func (cmd *ExpectedSliceCmd) 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 ExpectedStatusCmd ¶
type ExpectedStatusCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedStatusCmd) Bytes ¶
func (cmd *ExpectedStatusCmd) Bytes() ([]byte, error)
func (*ExpectedStatusCmd) Result ¶
func (cmd *ExpectedStatusCmd) Result() (string, error)
func (*ExpectedStatusCmd) SetVal ¶
func (cmd *ExpectedStatusCmd) SetVal(val string)
func (*ExpectedStatusCmd) String ¶
func (cmd *ExpectedStatusCmd) String() string
func (*ExpectedStatusCmd) Val ¶
func (cmd *ExpectedStatusCmd) Val() string
type ExpectedString ¶
type ExpectedString struct {
// contains filtered or unexported fields
}
func (*ExpectedString) SetVal ¶
func (cmd *ExpectedString) SetVal(val string)
type ExpectedStringCmd ¶ added in v9.4.0
type ExpectedStringCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedStringCmd) Bool ¶ added in v9.4.0
func (cmd *ExpectedStringCmd) Bool() (bool, error)
func (*ExpectedStringCmd) Bytes ¶ added in v9.4.0
func (cmd *ExpectedStringCmd) Bytes() ([]byte, error)
func (*ExpectedStringCmd) Float32 ¶ added in v9.4.0
func (cmd *ExpectedStringCmd) Float32() (float32, error)
func (*ExpectedStringCmd) Float64 ¶ added in v9.4.0
func (cmd *ExpectedStringCmd) Float64() (float64, error)
func (*ExpectedStringCmd) Int ¶ added in v9.4.0
func (cmd *ExpectedStringCmd) Int() (int, error)
func (*ExpectedStringCmd) Int64 ¶ added in v9.4.0
func (cmd *ExpectedStringCmd) Int64() (int64, error)
func (*ExpectedStringCmd) Result ¶ added in v9.4.0
func (cmd *ExpectedStringCmd) Result() (string, error)
func (*ExpectedStringCmd) Scan ¶ added in v9.4.0
func (cmd *ExpectedStringCmd) Scan(val interface{}) error
func (*ExpectedStringCmd) SetVal ¶ added in v9.4.0
func (cmd *ExpectedStringCmd) SetVal(val string)
func (*ExpectedStringCmd) String ¶ added in v9.4.0
func (cmd *ExpectedStringCmd) String() string
func (*ExpectedStringCmd) Time ¶ added in v9.4.0
func (cmd *ExpectedStringCmd) Time() (time.Time, error)
func (*ExpectedStringCmd) Uint64 ¶ added in v9.4.0
func (cmd *ExpectedStringCmd) Uint64() (uint64, error)
func (*ExpectedStringCmd) Val ¶ added in v9.4.0
func (cmd *ExpectedStringCmd) Val() string
type ExpectedStringSlice ¶
type ExpectedStringSlice struct {
// contains filtered or unexported fields
}
func (*ExpectedStringSlice) SetVal ¶
func (cmd *ExpectedStringSlice) SetVal(val []string)
type ExpectedStringSliceCmd ¶
type ExpectedStringSliceCmd struct {
// contains filtered or unexported fields
}
func (*ExpectedStringSliceCmd) Result ¶
func (cmd *ExpectedStringSliceCmd) Result() ([]string, error)
func (*ExpectedStringSliceCmd) ScanSlice ¶
func (cmd *ExpectedStringSliceCmd) ScanSlice(container interface{}) error
func (*ExpectedStringSliceCmd) SetVal ¶
func (cmd *ExpectedStringSliceCmd) SetVal(val []string)
func (*ExpectedStringSliceCmd) String ¶
func (cmd *ExpectedStringSliceCmd) String() string
func (*ExpectedStringSliceCmd) Val ¶
func (cmd *ExpectedStringSliceCmd) 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)
type StructValue ¶
type StructValue struct {
// contains filtered or unexported fields
}
func Struct ¶
func Struct(dst interface{}) (StructValue, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.