Versions in this module Expand all Collapse all v1 v1.3.0 Dec 17, 2025 Changes in this version + const UTVCacheTTL + type AllByTypeInput struct + AfterDate string + BeforeDate string + Limit int32 + Offset int32 + Type string + UserID string + type ArchinisisStatusParams struct + UserID string + type ArchinisisTokenHandler struct + func NewArchinisisTokenHandler(store utv.ArchinisisToken, cache *cache.Storage) *ArchinisisTokenHandler + func (h *ArchinisisTokenHandler) GetSportIDs(w http.ResponseWriter, r *http.Request) + func (h *ArchinisisTokenHandler) GetStatus(w http.ResponseWriter, r *http.Request) + func (h *ArchinisisTokenHandler) UpsertToken(w http.ResponseWriter, r *http.Request) + type ArchinisisTokenInput struct + Details json.RawMessage + UserID string + type CoachtechDataHandler struct + func NewCoachtechDataHandler(store utv.CoachtechData, cache *cache.Storage) *CoachtechDataHandler + func (h *CoachtechDataHandler) GetData(w http.ResponseWriter, r *http.Request) + func (h *CoachtechDataHandler) GetStatus(w http.ResponseWriter, r *http.Request) + func (h *CoachtechDataHandler) Insert(w http.ResponseWriter, r *http.Request) + type CoachtechDataParams struct + AfterDate string + BeforeDate string + UserID string + type CoachtechInsertInput struct + CoachtechID int32 + Data json.RawMessage + SummaryDate string + TestID string + UserID string + type CoachtechStatusParams struct + UserID string + type DataForUpdateParams struct + Hours int + Source string + type DeleteAllGarminParams struct + UserID string + type DeleteAllOuraParams struct + UserID string + type DeleteAllPolarParams struct + UserID string + type DeleteAllSuuntoParams struct + UserID string + type DisconnectParams struct + Source string + UserID string + type GarminDataHandler struct + func NewGarminDataHandler(store utv.GarminData, cache *cache.Storage) *GarminDataHandler + func (h *GarminDataHandler) DeleteAllData(w http.ResponseWriter, r *http.Request) + func (h *GarminDataHandler) GetData(w http.ResponseWriter, r *http.Request) + func (h *GarminDataHandler) GetDates(w http.ResponseWriter, r *http.Request) + func (h *GarminDataHandler) GetTypes(w http.ResponseWriter, r *http.Request) + func (h *GarminDataHandler) InsertData(w http.ResponseWriter, r *http.Request) + type GarminGetDataParams struct + Date string + Key string + UserID string + type GarminGetDatesParams struct + AfterDate string + BeforeDate string + UserID string + type GarminGetTypesParams struct + Date string + UserID string + type GarminPostDataInput struct + Data json.RawMessage + Date string + UserID string + type GarminStatusParams struct + UserID string + type GarminTokenByAccessTokenParams struct + Token string + type GarminTokenHandler struct + func NewGarminTokenHandler(store utv.GarminToken, cache *cache.Storage) *GarminTokenHandler + func (h *GarminTokenHandler) GetStatus(w http.ResponseWriter, r *http.Request) + func (h *GarminTokenHandler) GetUserIDByToken(w http.ResponseWriter, r *http.Request) + func (h *GarminTokenHandler) TokenExists(w http.ResponseWriter, r *http.Request) + func (h *GarminTokenHandler) UpsertToken(w http.ResponseWriter, r *http.Request) + type GarminTokenInput struct + Details json.RawMessage + UserID string + type GeneralDataHandler struct + func NewGeneralDataHandler(oura utv.OuraData, polar utv.PolarData, suunto utv.SuuntoData, ...) *GeneralDataHandler + func (h *GeneralDataHandler) Disconnect(w http.ResponseWriter, r *http.Request) + func (h *GeneralDataHandler) GetAllByType(w http.ResponseWriter, r *http.Request) + func (h *GeneralDataHandler) GetDataForUpdate(w http.ResponseWriter, r *http.Request) + func (h *GeneralDataHandler) GetLatestData(w http.ResponseWriter, r *http.Request) + func (h *GeneralDataHandler) GetToken(w http.ResponseWriter, r *http.Request) + func (h *GeneralDataHandler) GetTokensForUpdate(w http.ResponseWriter, r *http.Request) + type GetStatusParams struct + UserID string + type GetTokenByOuraIDParams struct + OuraID string + type GetTokenByPolarIDParams struct + PolarID string + type GetTokenByUsernameParams struct + Username string + type KlabStatusParams struct + UserID string + type KlabTokenHandler struct + func NewKlabTokenHandler(store utv.KlabToken, cache *cache.Storage) *KlabTokenHandler + func (h *KlabTokenHandler) GetSportIDs(w http.ResponseWriter, r *http.Request) + func (h *KlabTokenHandler) GetStatus(w http.ResponseWriter, r *http.Request) + func (h *KlabTokenHandler) UpsertToken(w http.ResponseWriter, r *http.Request) + type KlabTokenInput struct + Details json.RawMessage + UserID string + type LatestDataInput struct + Device string + Limit int32 + Type string + UserID string + type LatestDataResponse struct + Data json.RawMessage + Date string + Device string + type OuraDataHandler struct + func NewOuraDataHandler(store utv.OuraData, cache *cache.Storage) *OuraDataHandler + func (h *OuraDataHandler) DeleteAllData(w http.ResponseWriter, r *http.Request) + func (h *OuraDataHandler) GetData(w http.ResponseWriter, r *http.Request) + func (h *OuraDataHandler) GetDates(w http.ResponseWriter, r *http.Request) + func (h *OuraDataHandler) GetTypes(w http.ResponseWriter, r *http.Request) + func (h *OuraDataHandler) InsertData(w http.ResponseWriter, r *http.Request) + type OuraDeleteDataInput struct + Date string + UserID string + type OuraGetDataParams struct + Date string + Key string + UserID string + type OuraGetDatesParams struct + AfterDate string + BeforeDate string + UserID string + type OuraGetTypesParams struct + Date string + UserID string + type OuraPostDataInput struct + Data json.RawMessage + Date string + UserID string + type OuraStatusParams struct + UserID string + type OuraTokenHandler struct + func NewOuraTokenHandler(store utv.OuraToken, cache *cache.Storage) *OuraTokenHandler + func (h *OuraTokenHandler) GetStatus(w http.ResponseWriter, r *http.Request) + func (h *OuraTokenHandler) GetTokenByOuraID(w http.ResponseWriter, r *http.Request) + func (h *OuraTokenHandler) UpsertToken(w http.ResponseWriter, r *http.Request) + type OuraTokenInput struct + Details json.RawMessage + UserID string + type PolarDataHandler struct + func NewPolarDataHandler(store utv.PolarData, cache *cache.Storage) *PolarDataHandler + func (h *PolarDataHandler) DeleteAllData(w http.ResponseWriter, r *http.Request) + func (h *PolarDataHandler) GetData(w http.ResponseWriter, r *http.Request) + func (h *PolarDataHandler) GetDates(w http.ResponseWriter, r *http.Request) + func (h *PolarDataHandler) GetTypes(w http.ResponseWriter, r *http.Request) + func (h *PolarDataHandler) InsertData(w http.ResponseWriter, r *http.Request) + type PolarDeleteDataInput struct + Date string + UserID string + type PolarGetDataParams struct + Date string + Key string + UserID string + type PolarGetDatesParams struct + AfterDate string + BeforeDate string + UserID string + type PolarGetTypesParams struct + Date string + UserID string + type PolarPostDataInput struct + Data json.RawMessage + Date string + UserID string + type PolarTokenHandler struct + func NewPolarTokenHandler(store utv.PolarToken, cache *cache.Storage) *PolarTokenHandler + func (h *PolarTokenHandler) GetStatus(w http.ResponseWriter, r *http.Request) + func (h *PolarTokenHandler) GetTokenByPolarID(w http.ResponseWriter, r *http.Request) + func (h *PolarTokenHandler) UpsertToken(w http.ResponseWriter, r *http.Request) + type PolarTokenInput struct + Details json.RawMessage + UserID string + type SourceCacheHandler struct + func NewSourceCacheHandler(store utv.SourceCache, cache *cache.Storage) *SourceCacheHandler + func (h *SourceCacheHandler) GetAllDataTypes(w http.ResponseWriter, r *http.Request) + func (h *SourceCacheHandler) UpsertDataTypes(w http.ResponseWriter, r *http.Request) + type SourceParam struct + Source string + type SportIDParam struct + SportID string + type SuuntoDataHandler struct + func NewSuuntoDataHandler(store utv.SuuntoData, cache *cache.Storage) *SuuntoDataHandler + func (h *SuuntoDataHandler) DeleteAllData(w http.ResponseWriter, r *http.Request) + func (h *SuuntoDataHandler) GetData(w http.ResponseWriter, r *http.Request) + func (h *SuuntoDataHandler) GetDates(w http.ResponseWriter, r *http.Request) + func (h *SuuntoDataHandler) GetTypes(w http.ResponseWriter, r *http.Request) + func (h *SuuntoDataHandler) InsertData(w http.ResponseWriter, r *http.Request) + type SuuntoDeleteDataInput struct + Date string + UserID string + type SuuntoGetDataParams struct + Date string + Key string + UserID string + type SuuntoGetDatesParams struct + AfterDate string + BeforeDate string + UserID string + type SuuntoGetTypesParams struct + Date string + UserID string + type SuuntoPostDataInput struct + Data json.RawMessage + Date string + UserID string + type SuuntoStatusParams struct + UserID string + type SuuntoTokenHandler struct + func NewSuuntoTokenHandler(store utv.SuuntoToken, cache *cache.Storage) *SuuntoTokenHandler + func (h *SuuntoTokenHandler) GetStatus(w http.ResponseWriter, r *http.Request) + func (h *SuuntoTokenHandler) GetTokenByUsername(w http.ResponseWriter, r *http.Request) + func (h *SuuntoTokenHandler) UpsertToken(w http.ResponseWriter, r *http.Request) + type SuuntoTokenInput struct + Details json.RawMessage + UserID string + type TokenInput struct + Source string + UserID string + type TokensForUpdateParams struct + Hours int + Source string + type UpsertSourceCacheBody struct + Data []string + Source string + type UserDataHandler struct + func NewUserDataHandler(store utv.UserData, cache *cache.Storage) *UserDataHandler + func (h *UserDataHandler) DeleteUserData(w http.ResponseWriter, r *http.Request) + func (h *UserDataHandler) GetLinkedDevices(w http.ResponseWriter, r *http.Request) + func (h *UserDataHandler) GetUserData(w http.ResponseWriter, r *http.Request) + func (h *UserDataHandler) GetUserIDBySportID(w http.ResponseWriter, r *http.Request) + func (h *UserDataHandler) UpsertUserData(w http.ResponseWriter, r *http.Request) + type UserDataInput struct + Data json.RawMessage + type UserDataResponse struct + Data interface{} + UserID string + type UserDataUpsertInput struct + Data json.RawMessage + type UserIDParam struct + UserID string