storage

package
v0.0.0-...-dd85d06 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationRepository

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

func NewNotificationRepository

func NewNotificationRepository(queryer Queryer) *NotificationRepository

func (*NotificationRepository) DeleteByIDs

func (r *NotificationRepository) DeleteByIDs(ctx context.Context, ids []uuid.UUID) error

func (*NotificationRepository) InsertOne

func (*NotificationRepository) ListByTypeForUpdate

func (r *NotificationRepository) ListByTypeForUpdate(
	ctx context.Context,
	notificationType entity.NotificationType,
	batchSize int,
) ([]*entity.Notification, error)

type Queryer

type Queryer interface {
	QueryxContext(ctx context.Context, query string, args ...any) (*sqlx.Rows, error)
	NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error)
	SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
	ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
	Rebind(query string) string
}

Jump to

Keyboard shortcuts

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