Versions in this module Expand all Collapse all v0 v0.15.0 Oct 16, 2023 Changes in this version + type Cache struct + func NewCache(t mockConstructorTestingTNewCache) *Cache[K, V] + func (_m *Cache[K, V]) Delete(ctx context.Context, key K, options ...trcache.IOption[trcache.IDeleteOpt]) error + func (_m *Cache[K, V]) EXPECT() *Cache_Expecter[K, V] + func (_m *Cache[K, V]) Get(ctx context.Context, key K, options ...trcache.IOption[trcache.IGetOpt]) (V, error) + func (_m *Cache[K, V]) Name() string + func (_m *Cache[K, V]) Set(ctx context.Context, key K, value V, ...) error + type CacheRefreshFunc struct + func NewCacheRefreshFunc(t mockConstructorTestingTNewCacheRefreshFunc) *CacheRefreshFunc[K, V] + func (_m *CacheRefreshFunc[K, V]) EXPECT() *CacheRefreshFunc_Expecter[K, V] + func (_m *CacheRefreshFunc[K, V]) Execute(ctx context.Context, key K, options trcache.RefreshFuncOptions) (V, error) + type CacheRefreshFunc_Execute_Call struct + func (_c *CacheRefreshFunc_Execute_Call[K, V]) Return(_a0 V, _a1 error) *CacheRefreshFunc_Execute_Call[K, V] + func (_c *CacheRefreshFunc_Execute_Call[K, V]) Run(run func(ctx context.Context, key K, options trcache.RefreshFuncOptions)) *CacheRefreshFunc_Execute_Call[K, V] + func (_c *CacheRefreshFunc_Execute_Call[K, V]) RunAndReturn(run func(context.Context, K, trcache.RefreshFuncOptions) (V, error)) *CacheRefreshFunc_Execute_Call[K, V] + type CacheRefreshFunc_Expecter struct + func (_e *CacheRefreshFunc_Expecter[K, V]) Execute(ctx interface{}, key interface{}, options interface{}) *CacheRefreshFunc_Execute_Call[K, V] + type Cache_Delete_Call struct + func (_c *Cache_Delete_Call[K, V]) Return(_a0 error) *Cache_Delete_Call[K, V] + func (_c *Cache_Delete_Call[K, V]) Run(...) *Cache_Delete_Call[K, V] + func (_c *Cache_Delete_Call[K, V]) RunAndReturn(run func(context.Context, K, ...trcache.IOption[trcache.IDeleteOpt]) error) *Cache_Delete_Call[K, V] + type Cache_Expecter struct + func (_e *Cache_Expecter[K, V]) Delete(ctx interface{}, key interface{}, options ...interface{}) *Cache_Delete_Call[K, V] + func (_e *Cache_Expecter[K, V]) Get(ctx interface{}, key interface{}, options ...interface{}) *Cache_Get_Call[K, V] + func (_e *Cache_Expecter[K, V]) Name() *Cache_Name_Call[K, V] + func (_e *Cache_Expecter[K, V]) Set(ctx interface{}, key interface{}, value interface{}, options ...interface{}) *Cache_Set_Call[K, V] + type Cache_Get_Call struct + func (_c *Cache_Get_Call[K, V]) Return(_a0 V, _a1 error) *Cache_Get_Call[K, V] + func (_c *Cache_Get_Call[K, V]) Run(...) *Cache_Get_Call[K, V] + func (_c *Cache_Get_Call[K, V]) RunAndReturn(run func(context.Context, K, ...trcache.IOption[trcache.IGetOpt]) (V, error)) *Cache_Get_Call[K, V] + type Cache_Name_Call struct + func (_c *Cache_Name_Call[K, V]) Return(_a0 string) *Cache_Name_Call[K, V] + func (_c *Cache_Name_Call[K, V]) Run(run func()) *Cache_Name_Call[K, V] + func (_c *Cache_Name_Call[K, V]) RunAndReturn(run func() string) *Cache_Name_Call[K, V] + type Cache_Set_Call struct + func (_c *Cache_Set_Call[K, V]) Return(_a0 error) *Cache_Set_Call[K, V] + func (_c *Cache_Set_Call[K, V]) Run(run func(ctx context.Context, key K, value V, ...)) *Cache_Set_Call[K, V] + func (_c *Cache_Set_Call[K, V]) RunAndReturn(run func(context.Context, K, V, ...trcache.IOption[trcache.ISetOpt]) error) *Cache_Set_Call[K, V] + type Codec struct + func NewCodec(t mockConstructorTestingTNewCodec) *Codec[V] + func (_m *Codec[V]) Decode(ctx context.Context, data interface{}) (V, error) + func (_m *Codec[V]) EXPECT() *Codec_Expecter[V] + func (_m *Codec[V]) Encode(ctx context.Context, data V) (interface{}, error) + type Codec_Decode_Call struct + func (_c *Codec_Decode_Call[V]) Return(_a0 V, _a1 error) *Codec_Decode_Call[V] + func (_c *Codec_Decode_Call[V]) Run(run func(ctx context.Context, data interface{})) *Codec_Decode_Call[V] + func (_c *Codec_Decode_Call[V]) RunAndReturn(run func(context.Context, interface{}) (V, error)) *Codec_Decode_Call[V] + type Codec_Encode_Call struct + func (_c *Codec_Encode_Call[V]) Return(_a0 interface{}, _a1 error) *Codec_Encode_Call[V] + func (_c *Codec_Encode_Call[V]) Run(run func(ctx context.Context, data V)) *Codec_Encode_Call[V] + func (_c *Codec_Encode_Call[V]) RunAndReturn(run func(context.Context, V) (interface{}, error)) *Codec_Encode_Call[V] + type Codec_Expecter struct + func (_e *Codec_Expecter[V]) Decode(ctx interface{}, data interface{}) *Codec_Decode_Call[V] + func (_e *Codec_Expecter[V]) Encode(ctx interface{}, data interface{}) *Codec_Encode_Call[V] + type RefreshCache struct + func NewRefreshCache(t mockConstructorTestingTNewRefreshCache) *RefreshCache[K, V] + func (_m *RefreshCache[K, V]) Delete(ctx context.Context, key K, options ...trcache.IOption[trcache.IDeleteOpt]) error + func (_m *RefreshCache[K, V]) EXPECT() *RefreshCache_Expecter[K, V] + func (_m *RefreshCache[K, V]) Get(ctx context.Context, key K, options ...trcache.IOption[trcache.IGetOpt]) (V, error) + func (_m *RefreshCache[K, V]) GetOrRefresh(ctx context.Context, key K, options ...trcache.IOption[trcache.IRefreshOpt]) (V, error) + func (_m *RefreshCache[K, V]) Name() string + func (_m *RefreshCache[K, V]) Set(ctx context.Context, key K, value V, ...) error + type RefreshCache_Delete_Call struct + func (_c *RefreshCache_Delete_Call[K, V]) Return(_a0 error) *RefreshCache_Delete_Call[K, V] + func (_c *RefreshCache_Delete_Call[K, V]) Run(...) *RefreshCache_Delete_Call[K, V] + func (_c *RefreshCache_Delete_Call[K, V]) RunAndReturn(run func(context.Context, K, ...trcache.IOption[trcache.IDeleteOpt]) error) *RefreshCache_Delete_Call[K, V] + type RefreshCache_Expecter struct + func (_e *RefreshCache_Expecter[K, V]) Delete(ctx interface{}, key interface{}, options ...interface{}) *RefreshCache_Delete_Call[K, V] + func (_e *RefreshCache_Expecter[K, V]) Get(ctx interface{}, key interface{}, options ...interface{}) *RefreshCache_Get_Call[K, V] + func (_e *RefreshCache_Expecter[K, V]) GetOrRefresh(ctx interface{}, key interface{}, options ...interface{}) *RefreshCache_GetOrRefresh_Call[K, V] + func (_e *RefreshCache_Expecter[K, V]) Name() *RefreshCache_Name_Call[K, V] + func (_e *RefreshCache_Expecter[K, V]) Set(ctx interface{}, key interface{}, value interface{}, options ...interface{}) *RefreshCache_Set_Call[K, V] + type RefreshCache_GetOrRefresh_Call struct + func (_c *RefreshCache_GetOrRefresh_Call[K, V]) Return(_a0 V, _a1 error) *RefreshCache_GetOrRefresh_Call[K, V] + func (_c *RefreshCache_GetOrRefresh_Call[K, V]) Run(...) *RefreshCache_GetOrRefresh_Call[K, V] + func (_c *RefreshCache_GetOrRefresh_Call[K, V]) RunAndReturn(...) *RefreshCache_GetOrRefresh_Call[K, V] + type RefreshCache_Get_Call struct + func (_c *RefreshCache_Get_Call[K, V]) Return(_a0 V, _a1 error) *RefreshCache_Get_Call[K, V] + func (_c *RefreshCache_Get_Call[K, V]) Run(...) *RefreshCache_Get_Call[K, V] + func (_c *RefreshCache_Get_Call[K, V]) RunAndReturn(run func(context.Context, K, ...trcache.IOption[trcache.IGetOpt]) (V, error)) *RefreshCache_Get_Call[K, V] + type RefreshCache_Name_Call struct + func (_c *RefreshCache_Name_Call[K, V]) Return(_a0 string) *RefreshCache_Name_Call[K, V] + func (_c *RefreshCache_Name_Call[K, V]) Run(run func()) *RefreshCache_Name_Call[K, V] + func (_c *RefreshCache_Name_Call[K, V]) RunAndReturn(run func() string) *RefreshCache_Name_Call[K, V] + type RefreshCache_Set_Call struct + func (_c *RefreshCache_Set_Call[K, V]) Return(_a0 error) *RefreshCache_Set_Call[K, V] + func (_c *RefreshCache_Set_Call[K, V]) Run(run func(ctx context.Context, key K, value V, ...)) *RefreshCache_Set_Call[K, V] + func (_c *RefreshCache_Set_Call[K, V]) RunAndReturn(run func(context.Context, K, V, ...trcache.IOption[trcache.ISetOpt]) error) *RefreshCache_Set_Call[K, V] + type Validator struct + func NewValidator(t mockConstructorTestingTNewValidator) *Validator[V] + func (_m *Validator[V]) EXPECT() *Validator_Expecter[V] + func (_m *Validator[V]) ValidateGet(ctx context.Context, data V) error + type Validator_Expecter struct + func (_e *Validator_Expecter[V]) ValidateGet(ctx interface{}, data interface{}) *Validator_ValidateGet_Call[V] + type Validator_ValidateGet_Call struct + func (_c *Validator_ValidateGet_Call[V]) Return(_a0 error) *Validator_ValidateGet_Call[V] + func (_c *Validator_ValidateGet_Call[V]) Run(run func(ctx context.Context, data V)) *Validator_ValidateGet_Call[V] + func (_c *Validator_ValidateGet_Call[V]) RunAndReturn(run func(context.Context, V) error) *Validator_ValidateGet_Call[V]