Documentation ¶
Overview ¶
Package gardens contains http Handlers for gardens
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateUserGardenHandler ¶
func NewCreateUserGardenHandler(storage RepoInterface, tm token.Manager) gardens.CreateUserGardenHandler
NewCreateUserHandler builder for gardens.CreateUserGardenHandler interface implementation.
func NewDeleteUserGardenHandler ¶
func NewDeleteUserGardenHandler(storage RepoInterface, tm token.Manager) gardens.DeleteUserGardenHandler
NewDeleteUserGardenHandler builder for gardens.DeleteUserGardenHandler interface implementation.
Types ¶
type RepoInterface ¶
type RepoInterface interface { StoreGarden(ctx context.Context, garden *models.Garden) (*models.Garden, error) FindGardenByID(ctx context.Context, gardenID int64) (*models.Garden, error) DeleteGarden(ctx context.Context, gardenID int64) error }
RepoInterface gardens repository behavior.
Click to show internal directories.
Click to hide internal directories.