mocks

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder struct {
	mock.Mock
}

Encoder is an autogenerated mock type for the Encoder type

func NewEncoder

func NewEncoder(t NewEncoderT) *Encoder

NewEncoder creates a new instance of Encoder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Encoder) Decode

func (_m *Encoder) Decode(_a0 []byte, _a1 interface{}) error

Decode provides a mock function with given fields: _a0, _a1

func (*Encoder) Encode

func (_m *Encoder) Encode(value interface{}) ([]byte, error)

Encode provides a mock function with given fields: value

type NewEncoderT added in v0.0.2

type NewEncoderT interface {
	mock.TestingT
	Cleanup(func())
}

type NewRedisStoreT added in v0.0.2

type NewRedisStoreT interface {
	mock.TestingT
	Cleanup(func())
}

type RedisStore

type RedisStore struct {
	mock.Mock
}

RedisStore is an autogenerated mock type for the RedisStore type

func NewRedisStore

func NewRedisStore(t NewRedisStoreT) *RedisStore

NewRedisStore creates a new instance of RedisStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*RedisStore) Close added in v0.0.2

func (_m *RedisStore) Close() error

Close provides a mock function with given fields:

func (*RedisStore) Del

func (_m *RedisStore) Del(ctx context.Context, keys ...string) *redis.IntCmd

Del provides a mock function with given fields: ctx, keys

func (*RedisStore) Expire

func (_m *RedisStore) Expire(ctx context.Context, key string, expiration time.Duration) *redis.BoolCmd

Expire provides a mock function with given fields: ctx, key, expiration

func (*RedisStore) FlushAll

func (_m *RedisStore) FlushAll(ctx context.Context) *redis.StatusCmd

FlushAll provides a mock function with given fields: ctx

func (*RedisStore) Get

func (_m *RedisStore) Get(ctx context.Context, key string) *redis.StringCmd

Get provides a mock function with given fields: ctx, key

func (*RedisStore) Ping

func (_m *RedisStore) Ping(ctx context.Context) *redis.StatusCmd

Ping provides a mock function with given fields: ctx

func (*RedisStore) SAdd

func (_m *RedisStore) SAdd(ctx context.Context, key string, members ...interface{}) *redis.IntCmd

SAdd provides a mock function with given fields: ctx, key, members

func (*RedisStore) SMembers

func (_m *RedisStore) SMembers(ctx context.Context, key string) *redis.StringSliceCmd

SMembers provides a mock function with given fields: ctx, key

func (*RedisStore) Set

func (_m *RedisStore) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *redis.StatusCmd

Set provides a mock function with given fields: ctx, key, value, expiration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL