query

package
v0.0.0-...-56ef6d5 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 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 AvailableHours

type AvailableHours struct {
	From time.Time
	To   time.Time
}

type AvailableHoursHandler

type AvailableHoursHandler decorator.QueryHandler[AvailableHours, []Date]

func NewAvailableHoursHandler

func NewAvailableHoursHandler(
	readModel AvailableHoursReadModel,
	logger *logrus.Entry,
	metricsClient decorator.MetricsClient,
) AvailableHoursHandler

type AvailableHoursReadModel

type AvailableHoursReadModel interface {
	AvailableHours(ctx context.Context, from time.Time, to time.Time) ([]Date, error)
}

type Date

type Date struct {
	Date         time.Time
	HasFreeHours bool
	Hours        []Hour
}

type Hour

type Hour struct {
	Available            bool
	HasTrainingScheduled bool
	Hour                 time.Time
}

type HourAvailability

type HourAvailability struct {
	Hour time.Time
}

type HourAvailabilityHandler

type HourAvailabilityHandler decorator.QueryHandler[HourAvailability, bool]

func NewHourAvailabilityHandler

func NewHourAvailabilityHandler(
	hourRepo hour.Repository,
	logger *logrus.Entry,
	metricsClient decorator.MetricsClient,
) HourAvailabilityHandler

Jump to

Keyboard shortcuts

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