mocks

package
v0.0.0-...-633cbd0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 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 Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) Delete

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

Delete provides a mock function with given fields: key

func (*Repository) Get

func (_m *Repository) Get(key string) (string, error)

Get provides a mock function with given fields: key

func (*Repository) GetHSet

func (_m *Repository) GetHSet(key string, field string) (string, error)

GetHSet provides a mock function with given fields: key, field

func (*Repository) GetSAdd

func (_m *Repository) GetSAdd(key string) ([]string, error)

GetSAdd provides a mock function with given fields: key

func (*Repository) HSet

func (_m *Repository) HSet(key string, field string, value string) (bool, error)

HSet provides a mock function with given fields: key, field, value

func (*Repository) SAdd

func (_m *Repository) SAdd(key string, value ...interface{}) error

SAdd provides a mock function with given fields: key, value

func (*Repository) Set

func (_m *Repository) Set(key string, value interface{}, exp time.Duration) error

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

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func (*Service) Delete

func (_m *Service) Delete(key string) (int, error)

Delete provides a mock function with given fields: key

func (*Service) Get

func (_m *Service) Get(key string) (string, int, error)

Get provides a mock function with given fields: key

func (*Service) GetHSet

func (_m *Service) GetHSet(key string, field string) (string, int, error)

GetHSet provides a mock function with given fields: key, field

func (*Service) GetSAdd

func (_m *Service) GetSAdd(key string) ([]string, int, error)

GetSAdd provides a mock function with given fields: key

func (*Service) HSet

func (_m *Service) HSet(key string, field string, value string) (bool, int, error)

HSet provides a mock function with given fields: key, field, value

func (*Service) SAdd

func (_m *Service) SAdd(key string, value ...interface{}) (int, error)

SAdd provides a mock function with given fields: key, value

func (*Service) Set

func (_m *Service) Set(key string, value interface{}, exp time.Duration) (int, error)

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

Jump to

Keyboard shortcuts

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