repository

package
v0.0.0-...-45a6b41 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File interface {
	Upload(context.Context, []byte, string) error
	Download(context.Context, string) ([]byte, error)
}

type GenericRepo

type GenericRepo[E model.Entity] interface {
	Create(context.Context, E) (*E, error)
	Update(context.Context, E) (*E, error)
	Delete(context.Context, string) error
	GetByStringField(ctx context.Context, fieldName, fieldValue string) (*E, error)
	List(context.Context) ([]E, error)
	Exist(ctx context.Context, ID string) (bool, error)
}

type GenericRepoFactory

type GenericRepoFactory[E model.Entity] interface {
	NewGenericRepo(tx tx.TX) GenericRepo[E]
}

Jump to

Keyboard shortcuts

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