repo

package
v0.0.0-...-e5cd8ee Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefunctEntity = errors.New("there is no entity with this id")

Functions

func New

func New() app.Repository

Types

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func (*Repo) Add

func (a *Repo) Add(e interface{}) error

func (*Repo) CheckIdExist

func (a *Repo) CheckIdExist(id int64) bool

func (*Repo) Delete

func (a *Repo) Delete(id int64) error

func (*Repo) Get

func (a *Repo) Get(id int64) (interface{}, error)

func (*Repo) GetArray

func (a *Repo) GetArray() []interface{}

func (*Repo) GetNextId

func (a *Repo) GetNextId() int64

func (*Repo) Update

func (a *Repo) Update(id int64, e interface{}) error

Jump to

Keyboard shortcuts

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