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.
Click to show internal directories.
Click to hide internal directories.