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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllTrainings

type AllTrainings struct{}

type AllTrainingsHandler

type AllTrainingsHandler decorator.QueryHandler[AllTrainings, []Training]

func NewAllTrainingsHandler

func NewAllTrainingsHandler(
	readModel AllTrainingsReadModel,
	logger *logrus.Entry,
	metricsClient decorator.MetricsClient,
) AllTrainingsHandler

type AllTrainingsReadModel

type AllTrainingsReadModel interface {
	AllTrainings(ctx context.Context) ([]Training, error)
}

type Training

type Training struct {
	UUID     string
	UserUUID string
	User     string

	Time  time.Time
	Notes string

	ProposedTime   *time.Time
	MoveProposedBy *string

	CanBeCancelled bool
}

type TrainingsForUser

type TrainingsForUser struct {
	User auth.User
}

type TrainingsForUserHandler

type TrainingsForUserHandler decorator.QueryHandler[TrainingsForUser, []Training]

func NewTrainingsForUserHandler

func NewTrainingsForUserHandler(
	readModel TrainingsForUserReadModel,
	logger *logrus.Entry,
	metricsClient decorator.MetricsClient,
) TrainingsForUserHandler

type TrainingsForUserReadModel

type TrainingsForUserReadModel interface {
	FindTrainingsForUser(ctx context.Context, userUUID string) ([]Training, error)
}

Jump to

Keyboard shortcuts

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