mock

package
v0.0.0-...-55af573 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

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