gpa

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrudRepository

type CrudRepository[E Entity[ID], ID Id] interface {
	Repository[E, ID] // implements

	Save(E) error
	SaveAll(...E) (int64, error)

	FindById(ID) (E, error)
	FindAllById(...ID) ([]E, error)

	Delete(E) error
	DeleteAll(...E) (int64, error)
	DeleteById(ID) error
	DeleteAllById(...ID) (int64, error)
}

type Entity

type Entity[ID Id] interface {
	GetId() ID
}

type Id

type Id interface {
	comparable
}

type Repository

type Repository[E Entity[ID], ID Id] interface {
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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