Documentation ¶
Index ¶
- func NewCreateUserPlantHandler(storage RepoInterface, tm token.Manager) userplant.CreateUserPlantHandler
- func NewDeleteUserPlantHandler(storage RepoInterface, tm token.Manager) userplant.DeleteUserPlantHandler
- func NewGetUserPlantByIDHandler(storage RepoInterface) userplant.GetUserPlantByIDHandler
- func NewGetUserPlantHandler(storage RepoInterface, tm token.Manager) userplant.GetUserPlantsHandler
- func NewUpdateUserPlantHandler(storage RepoInterface, tm token.Manager) userplant.UpdateUserPlantHandler
- type RepoInterface
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) }
Click to show internal directories.
Click to hide internal directories.