item

package
v0.0.0-...-047fb71 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DTO

type DTO struct {
	ID   string
	Name string
	Meta interface{}
}

type Fields

type Fields struct {
	Name string
	Meta interface{}
}

type Filter

type Filter struct {
	ID   []string
	Name string

	Order     string
	Ascendent bool
	Start     uint
	Limit     uint
}

type Storage

type Storage interface {
	Find(id string) (*DTO, error)
	Search(filter *Filter) ([]*DTO, error)
	Create(fields *Fields) (*DTO, error)
	Update(id string, fields *Fields) (*DTO, error)
	Delete(id string) error
}

Jump to

Keyboard shortcuts

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