open

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(r ClosedDaysRepo, logger *slog.Logger) http.Handler

Types

type ClosedDaysRepo

type ClosedDaysRepo interface {
	IsClosed(ctx context.Context, t time.Time) (bool, error)
}

type Repo

type Repo struct {
	Pool *pgxpool.Pool
}

func (*Repo) AddClosedDay

func (d *Repo) AddClosedDay(ctx context.Context, day time.Time) error

func (*Repo) DeleteClosedDay

func (d *Repo) DeleteClosedDay(ctx context.Context, day time.Time) error

func (*Repo) IsClosed

func (d *Repo) IsClosed(ctx context.Context, t time.Time) (bool, error)

Jump to

Keyboard shortcuts

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