Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) Delete(key string) error
- func (_m *Repository) Get(key string) (string, error)
- func (_m *Repository) GetHSet(key string, field string) (string, error)
- func (_m *Repository) GetSAdd(key string) ([]string, error)
- func (_m *Repository) HSet(key string, field string, value string) (bool, error)
- func (_m *Repository) SAdd(key string, value ...interface{}) error
- func (_m *Repository) Set(key string, value interface{}, exp time.Duration) error
- type Service
- func (_m *Service) Delete(key string) (int, error)
- func (_m *Service) Get(key string) (string, int, error)
- func (_m *Service) GetHSet(key string, field string) (string, int, error)
- func (_m *Service) GetSAdd(key string) ([]string, int, error)
- func (_m *Service) HSet(key string, field string, value string) (bool, int, error)
- func (_m *Service) SAdd(key string, value ...interface{}) (int, error)
- func (_m *Service) Set(key string, value interface{}, exp time.Duration) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
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) SAdd ¶
func (_m *Repository) SAdd(key string, value ...interface{}) error
SAdd provides a mock function with given fields: key, value
type Service ¶
Service is an autogenerated mock type for the Service type
Click to show internal directories.
Click to hide internal directories.