Documentation ¶
Index ¶
- type CarRepository
- type Cars
- type Setup
- func (r *Setup) Create(ctx context.Context, setup *models.Setup) error
- func (r *Setup) GetAll(ctx context.Context, userID uuid.UUID, qf infraHttp.QueryFilter) (models.SetupList, error)
- func (r *Setup) GetByID(ctx context.Context, userID, id uuid.UUID) (*models.Setup, error)
- func (r *Setup) GetSetupFile(ctx context.Context, id uuid.UUID) (*models.SetupFile, error)
- func (r *Setup) RecordVote(ctx context.Context, setupID, userID uuid.UUID, upvote bool) (int64, error)
- func (r *Setup) Update(ctx context.Context, setup *models.Setup, user *models.User) error
- type SetupRepository
- type Strategy
- type TrackRepository
- type Tracks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CarRepository ¶
type Cars ¶
type Cars struct {
// contains filtered or unexported fields
}
func NewCars ¶
func NewCars(dao *data.AccessObject, repo CarRepository) *Cars
type Setup ¶
type Setup struct {
// contains filtered or unexported fields
}
func NewSetup ¶
func NewSetup( log *zerolog.Logger, dao *data.AccessObject, repo SetupRepository, validator *validators.Setup, ) *Setup
func (*Setup) GetSetupFile ¶
func (*Setup) RecordVote ¶
type SetupRepository ¶
type SetupRepository interface { Create(context.Context, *models.Setup, ...postgresdb.ExecOption) error Update(context.Context, *models.Setup, ...postgresdb.ExecOption) (int64, error) GetList(context.Context, uuid.UUID, ...postgresdb.ExecOption) (models.SetupList, error) IncrementDownload(context.Context, uuid.UUID, ...postgresdb.ExecOption) error RecordVote(context.Context, uuid.UUID, uuid.UUID, bool, ...postgresdb.ExecOption) error }
type Strategy ¶
type Strategy struct {
// contains filtered or unexported fields
}
func NewStrategy ¶
func (*Strategy) CalculatePitRequirement ¶
func (s *Strategy) CalculatePitRequirement( _ context.Context, info models.PitReqCarInfo, ) (*models.PitRequirement, error)
type TrackRepository ¶
type Tracks ¶
type Tracks struct {
// contains filtered or unexported fields
}
func NewTracks ¶
func NewTracks(dao *data.AccessObject, repo TrackRepository) *Tracks
Click to show internal directories.
Click to hide internal directories.