mockstore

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

type MockStore struct {
	// contains filtered or unexported fields
}

func (*MockStore) All

func (m *MockStore) All() (map[string][]byte, error)

All implements the IterableStore interface

func (*MockStore) Commit

func (m *MockStore) Commit(token string, b []byte, expiry time.Time) (err error)

Commit implements the Store interface

func (*MockStore) Delete

func (m *MockStore) Delete(token string) (err error)

Delete implements the Store interface

func (*MockStore) ExpectAll

func (m *MockStore) ExpectAll(mb map[string][]byte, err error)

func (*MockStore) ExpectCommit

func (m *MockStore) ExpectCommit(token string, b []byte, expiry time.Time, err error)

func (*MockStore) ExpectDelete

func (m *MockStore) ExpectDelete(token string, err error)

func (*MockStore) ExpectFind

func (m *MockStore) ExpectFind(token string, b []byte, found bool, err error)

func (*MockStore) Find

func (m *MockStore) Find(token string) (b []byte, found bool, err error)

Find implements the Store interface

Jump to

Keyboard shortcuts

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