Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBook ¶
type MockBook interface { GetAll() ([]book.Book, error) GetById(id string) (*book.Book, error) Search(sp book.SearchParams, sortOrder string, limit, offset int) ([]book.Book, error) Create(bk *book.Book) error Update(bk *book.Book) error Destroy(id string) error }
func NewMockBook ¶
func NewMockBook() MockBook
type MockUser ¶
type MockUser interface { GetById(id string) (*user.User, error) Create(u *user.User) error Update(u *user.User) error Destroy(id string) error GetByUsername(username string) (*user.User, error) UsernameAvailable(username, cuurentID string) bool EmailAvailable(username, cuurentID string) bool }
func NewMockUser ¶
func NewMockUser() MockUser
Click to show internal directories.
Click to hide internal directories.