Documentation ¶
Overview ¶
Package mock provides a store to aid testing of mserv.
Index ¶
- Variables
- type Storage
- func (s *Storage) CreateMW(_ context.Context, mw *storage.MW) (string, error)
- func (s *Storage) DeleteMW(_ context.Context, id string) error
- func (s *Storage) GetAllActive(_ context.Context) ([]*storage.MW, error)
- func (s *Storage) GetMWByAPIID(_ context.Context, _ string) (*storage.MW, error)
- func (s *Storage) GetMWByID(_ context.Context, id string) (*storage.MW, error)
- func (s *Storage) InitMservStore(_ context.Context, tag string) error
- func (s *Storage) UpdateMW(_ context.Context, mw *storage.MW) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyUID = errors.New("UID cannot be empty")
ErrEmptyUID is returned when middleware UID is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct{}
Storage is a mock store for testing mserv.
func (*Storage) GetAllActive ¶
GetAllActive is a test mock.
func (*Storage) GetMWByAPIID ¶
GetMWByAPIID is a test mock.
func (*Storage) InitMservStore ¶
InitMservStore is a test mock.
Click to show internal directories.
Click to hide internal directories.