Documentation ¶
Index ¶
- func NewMySQLConnection() (*sqlx.DB, error)
- type MySQLTrainingsRepository
- func (r MySQLTrainingsRepository) AddTraining(_ context.Context, tr *training.Training) error
- func (r MySQLTrainingsRepository) AllTrainings(ctx context.Context) ([]query.Training, error)
- func (r MySQLTrainingsRepository) FindTrainingsForUser(ctx context.Context, userUUID string) ([]query.Training, error)
- func (r MySQLTrainingsRepository) GetTraining(ctx context.Context, trainingUUID string, user training.User) (*training.Training, error)
- func (r MySQLTrainingsRepository) RemoveAllTrainings(ctx context.Context) error
- func (r MySQLTrainingsRepository) UpdateTraining(ctx context.Context, trainingUUID string, user training.User, ...) error
- type TrainerGrpc
- type UsersGrpc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMySQLConnection ¶
Types ¶
type MySQLTrainingsRepository ¶
type MySQLTrainingsRepository struct {
// contains filtered or unexported fields
}
func NewMySQLTrainingsRepository ¶
func NewMySQLTrainingsRepository(db *sqlx.DB) MySQLTrainingsRepository
func (MySQLTrainingsRepository) AddTraining ¶
func (MySQLTrainingsRepository) AllTrainings ¶
func (MySQLTrainingsRepository) FindTrainingsForUser ¶
func (MySQLTrainingsRepository) GetTraining ¶
func (MySQLTrainingsRepository) RemoveAllTrainings ¶
func (r MySQLTrainingsRepository) RemoveAllTrainings(ctx context.Context) error
RemoveAllTrainings was designed for tests for doing data cleanups
type TrainerGrpc ¶
type TrainerGrpc struct {
// contains filtered or unexported fields
}
func NewTrainerGrpc ¶
func NewTrainerGrpc(client trainer.TrainerServiceClient) TrainerGrpc
func (TrainerGrpc) CancelTraining ¶
func (TrainerGrpc) MoveTraining ¶
func (TrainerGrpc) ScheduleTraining ¶
type UsersGrpc ¶
type UsersGrpc struct {
// contains filtered or unexported fields
}
func NewUsersGrpc ¶
func NewUsersGrpc(client users.UsersServiceClient) UsersGrpc
Click to show internal directories.
Click to hide internal directories.