gardens

package
v0.0.0-...-f0786df Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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