storage

package
v0.0.0-...-18fed97 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 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 Repository

type Repository interface {
	Create(ctx context.Context, property *model.Property) error

	ReadAll(ctx context.Context) ([]*model.Property, error)

	ReadAllFiltered(ctx context.Context, names []string) ([]*model.Property, error)

	FindByID(context context.Context, id string) (*model.Property, error)

	FindByName(context context.Context, name string) (*model.Property, error)

	Delete(context context.Context, id string) error

	Update(ctx context.Context, property *model.Property) error
}

Repository interface defining the functionality of a basic implementations.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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