service

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplication

func NewApplication(ctx context.Context) (app.Application, func())

func NewComponentTestApplication

func NewComponentTestApplication(ctx context.Context) app.Application

Types

type TrainerServiceMock

type TrainerServiceMock struct {
}

func (TrainerServiceMock) CancelTraining

func (t TrainerServiceMock) CancelTraining(ctx context.Context, trainingTime time.Time) error

func (TrainerServiceMock) MoveTraining

func (t TrainerServiceMock) MoveTraining(ctx context.Context, newTime time.Time, originalTrainingTime time.Time) error

func (TrainerServiceMock) ScheduleTraining

func (t TrainerServiceMock) ScheduleTraining(ctx context.Context, trainingTime time.Time) error

type UserServiceMock

type UserServiceMock struct {
}

func (UserServiceMock) UpdateTrainingBalance

func (u UserServiceMock) UpdateTrainingBalance(ctx context.Context, userID string, amountChange int) error

Jump to

Keyboard shortcuts

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