mocks

package
v0.0.0-...-e50a543 Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	mock.Mock
}

DB is an autogenerated mock type for the DB type

func (*DB) Create

func (_m *DB) Create(accountID string, bin *models.Bin) error

Create provides a mock function with given fields: accountID, bin

func (*DB) Delete

func (_m *DB) Delete(accountID string, ID string) (int, error)

Delete provides a mock function with given fields: accountID, ID

func (*DB) Destroy

func (_m *DB) Destroy(accountID string) (int, error)

Destroy provides a mock function with given fields: accountID

func (*DB) Get

func (_m *DB) Get(accountID string, ID string) (*models.Bin, error)

Get provides a mock function with given fields: accountID, ID

func (*DB) GetAll

func (_m *DB) GetAll(accountID string, opts *hooks_apimodels.QueryOpts) ([]*models.Bin, error)

GetAll provides a mock function with given fields: accountID, opts

func (*DB) Update

func (_m *DB) Update(accountID string, ID string, bin *models.Bin) (int, error)

Update provides a mock function with given fields: accountID, ID, bin

type Handler

type Handler struct {
	mock.Mock
}

Handler is an autogenerated mock type for the Handler type

func (*Handler) Create

func (_m *Handler) Create(bin *models.Bin) (string, error)

Create provides a mock function with given fields: bin

func (*Handler) Delete

func (_m *Handler) Delete(accountID string, ID string) (int, error)

Delete provides a mock function with given fields: accountID, ID

func (*Handler) Destroy

func (_m *Handler) Destroy(accountID string) (int, error)

Destroy provides a mock function with given fields: accountID

func (*Handler) Get

func (_m *Handler) Get(accountID string, ID string) (*models.Bin, error)

Get provides a mock function with given fields: accountID, ID

func (*Handler) GetAll

func (_m *Handler) GetAll(accountID string, opts *hooks_apimodels.QueryOpts) ([]*models.Bin, error)

GetAll provides a mock function with given fields: accountID, opts

func (*Handler) Update

func (_m *Handler) Update(accountID string, ID string, bin *models.Bin) (int, error)

Update provides a mock function with given fields: accountID, ID, bin

Jump to

Keyboard shortcuts

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