mock

package
v0.0.0-...-f597de0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountRepository

type AccountRepository struct {
}

AccountRepository mock account.Repository.

func (*AccountRepository) Create

func (ur *AccountRepository) Create(a *account.Account) error

Create an Account.

func (*AccountRepository) FindByUsername

func (ur *AccountRepository) FindByUsername(username string) (*account.Account, error)

FindByUsername finds an Account from a username.

type PlantRepository

type PlantRepository struct {
}

PlantRepository mock for plant.Repository.

func (*PlantRepository) CreatePlant

func (pr *PlantRepository) CreatePlant(p *plant.Plant) (int64, error)

CreatePlant create a plant.

func (*PlantRepository) FindPlantByID

func (pr *PlantRepository) FindPlantByID(id string) (*plant.Plant, error)

FindPlantByID finds a plant from its id.

Jump to

Keyboard shortcuts

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