repo

package
v0.0.0-...-1d506e1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListOptions

type ListOptions struct {
	RoomID uuid.UUID
	Start  time.Time
	End    time.Time

	Limit  int64
	Offset int64
}

type Repository

type Repository interface {
	List(ctx context.Context, opts *ListOptions) ([]*types.Reservation, error)
	ListByRoomID(ctx context.Context, roomID uuid.UUID) ([]*types.Reservation, error)
	Create(ctx context.Context, res *types.Reservation) error
}

func NewMem

func NewMem() Repository

Jump to

Keyboard shortcuts

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