Documentation
¶
Index ¶
- type BaseRepo
- type Car
- type Setup
- func (s *Setup) Create(ctx context.Context, setup *models.Setup, opts ...postgresdb.ExecOption) error
- func (s *Setup) GetList(ctx context.Context, userID uuid.UUID, opts ...postgresdb.ExecOption) (models.SetupList, error)
- func (s *Setup) IncrementDownload(ctx context.Context, id uuid.UUID, opts ...postgresdb.ExecOption) error
- func (s *Setup) RecordVote(ctx context.Context, setupID, userID uuid.UUID, upvote bool, ...) error
- func (s *Setup) Update(ctx context.Context, setup *models.Setup, opts ...postgresdb.ExecOption) (int64, error)
- type SetupFile
- type Track
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Setup ¶
type Setup struct { BaseRepo // contains filtered or unexported fields }
func (*Setup) Create ¶
func (s *Setup) Create(ctx context.Context, setup *models.Setup, opts ...postgresdb.ExecOption) error
func (*Setup) GetList ¶
func (s *Setup) GetList( ctx context.Context, userID uuid.UUID, opts ...postgresdb.ExecOption, ) (models.SetupList, error)
func (*Setup) IncrementDownload ¶
func (s *Setup) IncrementDownload(ctx context.Context, id uuid.UUID, opts ...postgresdb.ExecOption) error
func (*Setup) RecordVote ¶
func (s *Setup) RecordVote( ctx context.Context, setupID, userID uuid.UUID, upvote bool, opts ...postgresdb.ExecOption, ) error
type SetupFile ¶ added in v0.6.0
type SetupFile struct {
BaseRepo
}
func NewSetupFile ¶ added in v0.6.0
func (*SetupFile) List ¶ added in v0.6.0
func (sf *SetupFile) List( ctx context.Context, setupID uuid.UUID, opts ...postgresdb.ExecOption, ) ([]models.SetupFile, error)
func (*SetupFile) Store ¶ added in v0.6.0
func (sf *SetupFile) Store(ctx context.Context, file models.SetupFile, opts ...postgresdb.ExecOption) error
Click to show internal directories.
Click to hide internal directories.