storage

package
v0.0.0-...-8a338e8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound error = errors.New("not found")

Functions

This section is empty.

Types

type Getter

type Getter interface {
	Get(ctx context.Context, filter filter.Filter) (entity.User, error)
	GetMultiple(ctx context.Context, offset, limit string, filter filter.Filter) ([]entity.User, error)
}

type Storage

type Storage interface {
	Getter
	Writer
}

type Writer

type Writer interface {
	Create(context.Context, entity.User) error
	Update(context.Context, entity.User) 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