store

package
v0.0.0-...-888f0f9 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorTypeNone ErrorType = iota
	ErrorTypeIncomplete
	ErrorTypeForeignKey
	ErrorTypeDuplicate
	ErrorTypeInvalid
	ErrorTypeQuery

	ErrorOpSave ErrorOp = iota
	ErrorOpGet
	ErrorOpDelete
	ErrorOpFind
)

Variables

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

ErrNotFound is a standard not found error

Functions

This section is empty.

Types

type Error

type Error struct {
	Type ErrorType
	Err  error
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) ErrorForOp

func (e *Error) ErrorForOp(op ErrorOp) error

func (*Error) Unwrap

func (e *Error) Unwrap() error

type ErrorOp

type ErrorOp int

type ErrorType

type ErrorType int

type Results

type Results struct {
	Count   int64       `json:"count"`
	Results interface{} `json:"results"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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