userplants

package
v0.0.0-...-625d9dc Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateUserPlantHandler

func NewCreateUserPlantHandler(storage RepoInterface, tm token.Manager) userplant.CreateUserPlantHandler

NewCreateUserPlantHandler builder for userplant.CreateUserPlantHandler interface implementation.

func NewDeleteUserPlantHandler

func NewDeleteUserPlantHandler(storage RepoInterface, tm token.Manager) userplant.DeleteUserPlantHandler

NewDeleteUserPlantHandler builder for userplant.DeleteUserPlantHandler interface implementation.

func NewGetUserPlantByIDHandler

func NewGetUserPlantByIDHandler(storage RepoInterface) userplant.GetUserPlantByIDHandler

NewGetUserPlantByIDHandler builder for userplant.GetUserPlantByIDHandler interface implementation.

func NewGetUserPlantHandler

func NewGetUserPlantHandler(storage RepoInterface, tm token.Manager) userplant.GetUserPlantsHandler

NewGetUserPlantHandler builder for userplant.GetUserPlantsHandler interface implementation.

func NewUpdateUserPlantHandler

func NewUpdateUserPlantHandler(storage RepoInterface, tm token.Manager) userplant.UpdateUserPlantHandler

NewUpdateUserPlantHandler builder for userplant.UpdateUserPlantHandler interface implementation.

Types

type RepoInterface

type RepoInterface interface {
	StorePlant(ctx context.Context, plant *models.UserPlant) (*models.UserPlant, error)
	ListUserPlants(ctx context.Context, userID, limit, offset int64) ([]*models.UserPlant, error)
	DeleteUserPlant(ctx context.Context, userPlantID int64) error
	UpdateUserPlant(ctx context.Context, plant *models.UserPlant) (*models.UserPlant, error)
	GetUserPlantByID(ctx context.Context, userPlantID int64) (*models.UserPlant, error)
}

Jump to

Keyboard shortcuts

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