query

package
v0.0.0-...-e173b71 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllTrainingsHandler

type AllTrainingsHandler struct {
	// contains filtered or unexported fields
}

func NewAllTrainingsHandler

func NewAllTrainingsHandler(readModel AllTrainingsReadModel) AllTrainingsHandler

func (AllTrainingsHandler) Handle

func (h AllTrainingsHandler) Handle(ctx context.Context) (tr []Training, err error)

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 TrainingsForUserHandler

type TrainingsForUserHandler struct {
	// contains filtered or unexported fields
}

func NewTrainingsForUserHandler

func NewTrainingsForUserHandler(readModel TrainingsForUserReadModel) TrainingsForUserHandler

func (TrainingsForUserHandler) Handle

func (h TrainingsForUserHandler) Handle(ctx context.Context, user auth.User) (tr []Training, err error)

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