Documentation
¶
Index ¶
- Constants
- func CalcNextMarkNo(wantMarkCounts int, passedMarkNo int) int
- func CalcPreviousMarkNo(wantMarkCounts int, passedMarkNo int) int
- func CreateDeviceID(role string, athleteNo int) string
- func RetrieveRoleAndMarkNo(deviceID string) (string, int, bool)
- func SeparateDeviceIDByRole(deviceIDs []string) ([]string, []string, []string, []string)
- func ValidateDeviceID(deviceID string) bool
- type Association
- type ContractType
- type Race
Constants ¶
View Source
const ( RoleMark = "mark" RoleAthlete = "athlete" RoleManager = "manager" RoleUnknown = "unknown" )
View Source
const FirstMarkNo = 1
Variables ¶
This section is empty.
Functions ¶
func CalcNextMarkNo ¶
func CalcPreviousMarkNo ¶
func CreateDeviceID ¶
func SeparateDeviceIDByRole ¶
func ValidateDeviceID ¶
Types ¶
type Association ¶
type ContractType ¶
type ContractType string
const ( ThreeMonthContract ContractType = "3month" OneYearContract ContractType = "1year" ThreeYearContract ContractType = "3year" FiveYearContract ContractType = "5year" FreeContract ContractType = "free" )
func (ContractType) Duration ¶
func (ct ContractType) Duration() time.Duration
type Race ¶
type Race struct { AssociationID string `json:"association_id"` Name string `json:"name"` Started bool `json:"started"` StartedAt time.Time `json:"started_at"` FinishedAt time.Time `json:"finished_at"` Association Association `json:"association"` AthleteIDs []string `json:"athlete_ids"` MarkIDs []string `json:"mark_ids"` }
Click to show internal directories.
Click to hide internal directories.