abstractions

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICreateRepository

type ICreateRepository[TEntity any] interface {
	Create(context.Context, TEntity) error
}

type IReadAllRepository

type IReadAllRepository[TEntity any] interface {
	ReadAll(context.Context) ([]TEntity, error)
}

type IReadByExternalIDRepository

type IReadByExternalIDRepository[TKey any, TEntity any] interface {
	ReadByExternalID(context.Context, TKey) (TEntity, error)
}

type IReadSingleRepository

type IReadSingleRepository[TKey any, TEntity any] interface {
	Read(TKey, context.Context) (TEntity, error)
}

type IUpdateRepository

type IUpdateRepository[TEntity any] interface {
	Update(context.Context, TEntity) error
}

Jump to

Keyboard shortcuts

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