Documentation
¶
Index ¶
- type ArchDataPayload
- type ArchDataResponse
- type ArchMeasurementResponse
- type ArchinisisStorage
- type Data
- type DataStore
- func (s *DataStore) GetDataBySporttiID(ctx context.Context, sporttiID string) (*ArchDataResponse, error)
- func (s *DataStore) GetRaceReport(ctx context.Context, sporttiID string, sessionID int32) (string, error)
- func (s *DataStore) GetRaceReportSessions(ctx context.Context, sporttiID string) ([]int32, error)
- func (s *DataStore) UpsertData(ctx context.Context, payload ArchDataPayload) error
- func (s *DataStore) UpsertRaceReport(ctx context.Context, p archsqlc.UpsertRaceReportParams) error
- type Users
- type UsersStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchDataPayload ¶
type ArchDataPayload struct {
Athlete archsqlc.UpsertAthleteParams
Measurements []archsqlc.UpsertMeasurementParams
}
type ArchDataResponse ¶
type ArchDataResponse struct {
// Athlete
NationalID string `json:"national_id"`
FirstName *string `json:"first_name,omitempty"`
LastName *string `json:"last_name,omitempty"`
Initials *string `json:"initials,omitempty"`
DateOfBirth *string `json:"date_of_birth,omitempty"`
Height *float64 `json:"height,omitempty"`
Weight *float64 `json:"weight,omitempty"`
// Measurements
Measurements []ArchMeasurementResponse `json:"measurements"`
}
type ArchMeasurementResponse ¶
type ArchMeasurementResponse struct {
MeasurementGroupID int32 `json:"measurement_group_id"`
MeasurementID *int32 `json:"measurement_id,omitempty"`
Discipline *string `json:"discipline,omitempty"`
SessionName *string `json:"session_name,omitempty"`
Place *string `json:"place,omitempty"`
RaceID *int32 `json:"race_id,omitempty"`
StartTime *string `json:"start_time,omitempty"`
StopTime *string `json:"stop_time,omitempty"`
NbSegments *int32 `json:"nb_segments,omitempty"`
Comment *string `json:"comment,omitempty"`
}
type ArchinisisStorage ¶
type ArchinisisStorage struct {
// contains filtered or unexported fields
}
ArchinisisStorage
func NewArchinisisStorage ¶
func NewArchinisisStorage(db *sql.DB) *ArchinisisStorage
NewArchinisisStorage creates a new ArchinisisStorage instance
func (*ArchinisisStorage) Data ¶
func (s *ArchinisisStorage) Data() Data
func (*ArchinisisStorage) Ping ¶
func (s *ArchinisisStorage) Ping(ctx context.Context) error
Methods
func (*ArchinisisStorage) Users ¶
func (s *ArchinisisStorage) Users() Users
type Data ¶
type Data interface {
GetRaceReportSessions(ctx context.Context, sporttiID string) ([]int32, error)
GetRaceReport(ctx context.Context, sporttiID string, sessionID int32) (string, error)
UpsertRaceReport(ctx context.Context, p archsqlc.UpsertRaceReportParams) error
UpsertData(ctx context.Context, payload ArchDataPayload) error
GetDataBySporttiID(ctx context.Context, sporttiID string) (*ArchDataResponse, error)
}
type DataStore ¶
type DataStore struct {
// contains filtered or unexported fields
}
func (*DataStore) GetDataBySporttiID ¶
func (*DataStore) GetRaceReport ¶
func (*DataStore) GetRaceReportSessions ¶
func (*DataStore) UpsertData ¶
func (s *DataStore) UpsertData(ctx context.Context, payload ArchDataPayload) error
func (*DataStore) UpsertRaceReport ¶
type Users ¶
type Users interface {
DeleteUserBySporttiID(ctx context.Context, sporttiID string) (string, error)
}
Interfaces
type UsersStore ¶
type UsersStore struct {
// contains filtered or unexported fields
}
func (*UsersStore) DeleteUserBySporttiID ¶
Click to show internal directories.
Click to hide internal directories.