mocks

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locker

type Locker struct {
	mock.Mock
}

Locker is an autogenerated mock type for the Locker type

func (*Locker) Lock

func (_m *Locker) Lock(stopChan chan struct{}) (<-chan struct{}, error)

Lock provides a mock function with given fields: stopChan

func (*Locker) Unlock

func (_m *Locker) Unlock() error

Unlock provides a mock function with given fields:

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func (*Store) AtomicDelete

func (_m *Store) AtomicDelete(key string, previous *dynalock.KVPair) (bool, error)

AtomicDelete provides a mock function with given fields: key, previous

func (*Store) AtomicPut

func (_m *Store) AtomicPut(key string, options ...dynalock.WriteOption) (bool, *dynalock.KVPair, error)

AtomicPut provides a mock function with given fields: key, options

func (*Store) Delete

func (_m *Store) Delete(key string) error

Delete provides a mock function with given fields: key

func (*Store) Exists

func (_m *Store) Exists(key string, options ...dynalock.ReadOption) (bool, error)

Exists provides a mock function with given fields: key, options

func (*Store) Get

func (_m *Store) Get(key string, options ...dynalock.ReadOption) (*dynalock.KVPair, error)

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

func (*Store) List

func (_m *Store) List(prefix string, options ...dynalock.ReadOption) ([]*dynalock.KVPair, error)

List provides a mock function with given fields: prefix, options

func (*Store) NewLock

func (_m *Store) NewLock(key string, options ...dynalock.LockOption) (dynalock.Locker, error)

NewLock provides a mock function with given fields: key, options

func (*Store) Put

func (_m *Store) Put(key string, options ...dynalock.WriteOption) error

Put provides a mock function with given fields: key, options

Jump to

Keyboard shortcuts

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