interfaces

package
v2.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedOutputRepo

type CachedOutputRepo interface {
	Get(ctx context.Context, key string) (*models.CachedOutput, error)
	Put(ctx context.Context, output *models.CachedOutput) error
	Delete(ctx context.Context, key string) error
}

type Repository

type Repository interface {
	CachedOutputRepo() CachedOutputRepo
	ReservationRepo() ReservationRepo
}

type ReservationRepo

type ReservationRepo interface {
	Get(ctx context.Context, key string) (*models.Reservation, error)
	Create(ctx context.Context, reservation *models.Reservation) error
	UpdateIfExpiredOrOwned(ctx context.Context, reservation *models.Reservation, now time.Time) error
	DeleteByKeyAndOwner(ctx context.Context, key, ownerID string) error
}

Jump to

Keyboard shortcuts

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