store

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	Get(ctx *gofr.Context) ([]model.Customer, error)
	GetByID(ctx *gofr.Context, id uuid.UUID) (model.Customer, error)
	Update(ctx *gofr.Context, customer model.Customer) (model.Customer, error)
	Create(ctx *gofr.Context, customer model.Customer) (model.Customer, error)
	Delete(ctx *gofr.Context, id uuid.UUID) error
}

func New

func New() Store

New is factory function for store layer

Jump to

Keyboard shortcuts

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