storage

package
v0.0.0-...-d1a115e Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	Create(ctx context.Context, recipe recipe.Recipe) (string, error)
	GetByID(ctx context.Context, id string) (recipe.Recipe, error)
	GetAll(ctx context.Context, start int64, limit int64) ([]recipe.Recipe, error)
	GetAllByUser(ctx context.Context, userID string) ([]recipe.Recipe, error)
	Update(ctx context.Context, recipe recipe.Recipe) error
	Delete(ctx context.Context, id string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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