repository

package
v0.0.0-...-bd70580 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 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]
}

type Queue

type Queue interface {
	SendMessage(ctx context.Context, messageBody string) error
	ReceiveMessage(ctx context.Context, maxNumberOfMessages int32) ([]model.Message, error)
	DeleteMessage(ctx context.Context, messageId string) error
}

Jump to

Keyboard shortcuts

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