Documentation
¶
Index ¶
- Constants
- type ActivityStats
- type ActivityTotal
- type ActivityType
- type ActivityZone
- type AltitudeStream
- func (m *AltitudeStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *AltitudeStream) MarshalBinary() ([]byte, error)
- func (m AltitudeStream) MarshalJSON() ([]byte, error)
- func (m *AltitudeStream) UnmarshalBinary(b []byte) error
- func (m *AltitudeStream) UnmarshalJSON(raw []byte) error
- func (m *AltitudeStream) Validate(formats strfmt.Registry) error
- type BaseStream
- type CadenceStream
- func (m *CadenceStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *CadenceStream) MarshalBinary() ([]byte, error)
- func (m CadenceStream) MarshalJSON() ([]byte, error)
- func (m *CadenceStream) UnmarshalBinary(b []byte) error
- func (m *CadenceStream) UnmarshalJSON(raw []byte) error
- func (m *CadenceStream) Validate(formats strfmt.Registry) error
- type ClubActivity
- type ClubAthlete
- type Comment
- type DetailedActivity
- func (m *DetailedActivity) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DetailedActivity) MarshalBinary() ([]byte, error)
- func (m DetailedActivity) MarshalJSON() ([]byte, error)
- func (m *DetailedActivity) UnmarshalBinary(b []byte) error
- func (m *DetailedActivity) UnmarshalJSON(raw []byte) error
- func (m *DetailedActivity) Validate(formats strfmt.Registry) error
- type DetailedAthlete
- func (m *DetailedAthlete) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DetailedAthlete) MarshalBinary() ([]byte, error)
- func (m DetailedAthlete) MarshalJSON() ([]byte, error)
- func (m *DetailedAthlete) UnmarshalBinary(b []byte) error
- func (m *DetailedAthlete) UnmarshalJSON(raw []byte) error
- func (m *DetailedAthlete) Validate(formats strfmt.Registry) error
- type DetailedClub
- func (m *DetailedClub) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DetailedClub) MarshalBinary() ([]byte, error)
- func (m DetailedClub) MarshalJSON() ([]byte, error)
- func (m *DetailedClub) UnmarshalBinary(b []byte) error
- func (m *DetailedClub) UnmarshalJSON(raw []byte) error
- func (m *DetailedClub) Validate(formats strfmt.Registry) error
- type DetailedGear
- func (m *DetailedGear) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DetailedGear) MarshalBinary() ([]byte, error)
- func (m DetailedGear) MarshalJSON() ([]byte, error)
- func (m *DetailedGear) UnmarshalBinary(b []byte) error
- func (m *DetailedGear) UnmarshalJSON(raw []byte) error
- func (m *DetailedGear) Validate(formats strfmt.Registry) error
- type DetailedSegment
- func (m *DetailedSegment) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DetailedSegment) MarshalBinary() ([]byte, error)
- func (m DetailedSegment) MarshalJSON() ([]byte, error)
- func (m *DetailedSegment) UnmarshalBinary(b []byte) error
- func (m *DetailedSegment) UnmarshalJSON(raw []byte) error
- func (m *DetailedSegment) Validate(formats strfmt.Registry) error
- type DetailedSegmentEffort
- func (m *DetailedSegmentEffort) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DetailedSegmentEffort) MarshalBinary() ([]byte, error)
- func (m DetailedSegmentEffort) MarshalJSON() ([]byte, error)
- func (m *DetailedSegmentEffort) UnmarshalBinary(b []byte) error
- func (m *DetailedSegmentEffort) UnmarshalJSON(raw []byte) error
- func (m *DetailedSegmentEffort) Validate(formats strfmt.Registry) error
- type DistanceStream
- func (m *DistanceStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *DistanceStream) MarshalBinary() ([]byte, error)
- func (m DistanceStream) MarshalJSON() ([]byte, error)
- func (m *DistanceStream) UnmarshalBinary(b []byte) error
- func (m *DistanceStream) UnmarshalJSON(raw []byte) error
- func (m *DistanceStream) Validate(formats strfmt.Registry) error
- type Error
- type ExplorerResponse
- type ExplorerSegment
- type Fault
- type HeartRateZoneRanges
- type HeartrateStream
- func (m *HeartrateStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *HeartrateStream) MarshalBinary() ([]byte, error)
- func (m HeartrateStream) MarshalJSON() ([]byte, error)
- func (m *HeartrateStream) UnmarshalBinary(b []byte) error
- func (m *HeartrateStream) UnmarshalJSON(raw []byte) error
- func (m *HeartrateStream) Validate(formats strfmt.Registry) error
- type Lap
- type LatLng
- type LatLngStream
- func (m *LatLngStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *LatLngStream) MarshalBinary() ([]byte, error)
- func (m LatLngStream) MarshalJSON() ([]byte, error)
- func (m *LatLngStream) UnmarshalBinary(b []byte) error
- func (m *LatLngStream) UnmarshalJSON(raw []byte) error
- func (m *LatLngStream) Validate(formats strfmt.Registry) error
- type MetaActivity
- type MetaAthlete
- type MetaClub
- type MovingStream
- func (m *MovingStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *MovingStream) MarshalBinary() ([]byte, error)
- func (m MovingStream) MarshalJSON() ([]byte, error)
- func (m *MovingStream) UnmarshalBinary(b []byte) error
- func (m *MovingStream) UnmarshalJSON(raw []byte) error
- func (m *MovingStream) Validate(formats strfmt.Registry) error
- type PhotosSummary
- type PhotosSummaryPrimary
- type PolylineMap
- type PowerStream
- func (m *PowerStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PowerStream) MarshalBinary() ([]byte, error)
- func (m PowerStream) MarshalJSON() ([]byte, error)
- func (m *PowerStream) UnmarshalBinary(b []byte) error
- func (m *PowerStream) UnmarshalJSON(raw []byte) error
- func (m *PowerStream) Validate(formats strfmt.Registry) error
- type PowerZoneRanges
- type Route
- type SmoothGradeStream
- func (m *SmoothGradeStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SmoothGradeStream) MarshalBinary() ([]byte, error)
- func (m SmoothGradeStream) MarshalJSON() ([]byte, error)
- func (m *SmoothGradeStream) UnmarshalBinary(b []byte) error
- func (m *SmoothGradeStream) UnmarshalJSON(raw []byte) error
- func (m *SmoothGradeStream) Validate(formats strfmt.Registry) error
- type SmoothVelocityStream
- func (m *SmoothVelocityStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SmoothVelocityStream) MarshalBinary() ([]byte, error)
- func (m SmoothVelocityStream) MarshalJSON() ([]byte, error)
- func (m *SmoothVelocityStream) UnmarshalBinary(b []byte) error
- func (m *SmoothVelocityStream) UnmarshalJSON(raw []byte) error
- func (m *SmoothVelocityStream) Validate(formats strfmt.Registry) error
- type Split
- type SportType
- type StreamSet
- type SummaryActivity
- func (m *SummaryActivity) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SummaryActivity) MarshalBinary() ([]byte, error)
- func (m SummaryActivity) MarshalJSON() ([]byte, error)
- func (m *SummaryActivity) UnmarshalBinary(b []byte) error
- func (m *SummaryActivity) UnmarshalJSON(raw []byte) error
- func (m *SummaryActivity) Validate(formats strfmt.Registry) error
- type SummaryAthlete
- func (m *SummaryAthlete) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SummaryAthlete) MarshalBinary() ([]byte, error)
- func (m SummaryAthlete) MarshalJSON() ([]byte, error)
- func (m *SummaryAthlete) UnmarshalBinary(b []byte) error
- func (m *SummaryAthlete) UnmarshalJSON(raw []byte) error
- func (m *SummaryAthlete) Validate(formats strfmt.Registry) error
- type SummaryClub
- func (m *SummaryClub) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SummaryClub) MarshalBinary() ([]byte, error)
- func (m SummaryClub) MarshalJSON() ([]byte, error)
- func (m *SummaryClub) UnmarshalBinary(b []byte) error
- func (m *SummaryClub) UnmarshalJSON(raw []byte) error
- func (m *SummaryClub) Validate(formats strfmt.Registry) error
- type SummaryGear
- type SummaryPRSegmentEffort
- func (m *SummaryPRSegmentEffort) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *SummaryPRSegmentEffort) MarshalBinary() ([]byte, error)
- func (m *SummaryPRSegmentEffort) UnmarshalBinary(b []byte) error
- func (m *SummaryPRSegmentEffort) Validate(formats strfmt.Registry) error
- type SummarySegment
- type SummarySegmentEffort
- type TemperatureStream
- func (m *TemperatureStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *TemperatureStream) MarshalBinary() ([]byte, error)
- func (m TemperatureStream) MarshalJSON() ([]byte, error)
- func (m *TemperatureStream) UnmarshalBinary(b []byte) error
- func (m *TemperatureStream) UnmarshalJSON(raw []byte) error
- func (m *TemperatureStream) Validate(formats strfmt.Registry) error
- type TimeStream
- func (m *TimeStream) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *TimeStream) MarshalBinary() ([]byte, error)
- func (m TimeStream) MarshalJSON() ([]byte, error)
- func (m *TimeStream) UnmarshalBinary(b []byte) error
- func (m *TimeStream) UnmarshalJSON(raw []byte) error
- func (m *TimeStream) Validate(formats strfmt.Registry) error
- type TimedZoneDistribution
- type TimedZoneRange
- func (m *TimedZoneRange) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *TimedZoneRange) MarshalBinary() ([]byte, error)
- func (m TimedZoneRange) MarshalJSON() ([]byte, error)
- func (m *TimedZoneRange) UnmarshalBinary(b []byte) error
- func (m *TimedZoneRange) UnmarshalJSON(raw []byte) error
- func (m *TimedZoneRange) Validate(formats strfmt.Registry) error
- type UpdatableActivity
- type Upload
- type ZoneRange
- type ZoneRanges
- type Zones
Constants ¶
const ( // ActivityZoneTypeHeartrate captures enum value "heartrate" ActivityZoneTypeHeartrate string = "heartrate" // ActivityZoneTypePower captures enum value "power" ActivityZoneTypePower string = "power" )
const ( // BaseStreamResolutionLow captures enum value "low" BaseStreamResolutionLow string = "low" // BaseStreamResolutionMedium captures enum value "medium" BaseStreamResolutionMedium string = "medium" // BaseStreamResolutionHigh captures enum value "high" BaseStreamResolutionHigh string = "high" )
const ( // BaseStreamSeriesTypeDistance captures enum value "distance" BaseStreamSeriesTypeDistance string = "distance" // BaseStreamSeriesTypeTime captures enum value "time" BaseStreamSeriesTypeTime string = "time" )
const ( // ExplorerSegmentClimbCategoryDescNC captures enum value "NC" ExplorerSegmentClimbCategoryDescNC string = "NC" // ExplorerSegmentClimbCategoryDescNr4 captures enum value "4" ExplorerSegmentClimbCategoryDescNr4 string = "4" // ExplorerSegmentClimbCategoryDescNr3 captures enum value "3" ExplorerSegmentClimbCategoryDescNr3 string = "3" // ExplorerSegmentClimbCategoryDescNr2 captures enum value "2" ExplorerSegmentClimbCategoryDescNr2 string = "2" // ExplorerSegmentClimbCategoryDescNr1 captures enum value "1" ExplorerSegmentClimbCategoryDescNr1 string = "1" // ExplorerSegmentClimbCategoryDescHC captures enum value "HC" ExplorerSegmentClimbCategoryDescHC string = "HC" )
const ( // SummarySegmentActivityTypeRide captures enum value "Ride" SummarySegmentActivityTypeRide string = "Ride" // SummarySegmentActivityTypeRun captures enum value "Run" SummarySegmentActivityTypeRun string = "Run" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityStats ¶
type ActivityStats struct { // all ride totals AllRideTotals *ActivityTotal `json:"all_ride_totals,omitempty"` // all run totals AllRunTotals *ActivityTotal `json:"all_run_totals,omitempty"` // all swim totals AllSwimTotals *ActivityTotal `json:"all_swim_totals,omitempty"` // The highest climb ridden by the athlete. BiggestClimbElevationGain float64 `json:"biggest_climb_elevation_gain,omitempty"` // The longest distance ridden by the athlete. BiggestRideDistance float64 `json:"biggest_ride_distance,omitempty"` // recent ride totals RecentRideTotals *ActivityTotal `json:"recent_ride_totals,omitempty"` // recent run totals RecentRunTotals *ActivityTotal `json:"recent_run_totals,omitempty"` // recent swim totals RecentSwimTotals *ActivityTotal `json:"recent_swim_totals,omitempty"` // ytd ride totals YtdRideTotals *ActivityTotal `json:"ytd_ride_totals,omitempty"` // ytd run totals YtdRunTotals *ActivityTotal `json:"ytd_run_totals,omitempty"` // ytd swim totals YtdSwimTotals *ActivityTotal `json:"ytd_swim_totals,omitempty"` }
ActivityStats A set of rolled-up statistics and totals for an athlete
swagger:model activityStats
func (*ActivityStats) ContextValidate ¶
ContextValidate validate this activity stats based on the context it is used
func (*ActivityStats) MarshalBinary ¶
func (m *ActivityStats) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ActivityStats) UnmarshalBinary ¶
func (m *ActivityStats) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ActivityTotal ¶
type ActivityTotal struct { // The total number of achievements of the considered activities. AchievementCount int64 `json:"achievement_count,omitempty"` // The number of activities considered in this total. Count int64 `json:"count,omitempty"` // The total distance covered by the considered activities. Distance float32 `json:"distance,omitempty"` // The total elapsed time of the considered activities. ElapsedTime int64 `json:"elapsed_time,omitempty"` // The total elevation gain of the considered activities. ElevationGain float32 `json:"elevation_gain,omitempty"` // The total moving time of the considered activities. MovingTime int64 `json:"moving_time,omitempty"` }
ActivityTotal A roll-up of metrics pertaining to a set of activities. Values are in seconds and meters.
swagger:model activityTotal
func (*ActivityTotal) ContextValidate ¶
ContextValidate validates this activity total based on context it is used
func (*ActivityTotal) MarshalBinary ¶
func (m *ActivityTotal) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ActivityTotal) UnmarshalBinary ¶
func (m *ActivityTotal) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ActivityType ¶
type ActivityType string
ActivityType An enumeration of the types an activity may have. Note that this enumeration does not include new sport types (e.g. MountainBikeRide, EMountainBikeRide), activities with these sport types will have the corresponding activity type (e.g. Ride for MountainBikeRide, EBikeRide for EMountainBikeRide)
swagger:model activityType
const ( // ActivityTypeAlpineSki captures enum value "AlpineSki" ActivityTypeAlpineSki ActivityType = "AlpineSki" // ActivityTypeBackcountrySki captures enum value "BackcountrySki" ActivityTypeBackcountrySki ActivityType = "BackcountrySki" // ActivityTypeCanoeing captures enum value "Canoeing" ActivityTypeCanoeing ActivityType = "Canoeing" // ActivityTypeCrossfit captures enum value "Crossfit" ActivityTypeCrossfit ActivityType = "Crossfit" // ActivityTypeEBikeRide captures enum value "EBikeRide" ActivityTypeEBikeRide ActivityType = "EBikeRide" // ActivityTypeElliptical captures enum value "Elliptical" ActivityTypeElliptical ActivityType = "Elliptical" // ActivityTypeGolf captures enum value "Golf" ActivityTypeGolf ActivityType = "Golf" // ActivityTypeHandcycle captures enum value "Handcycle" ActivityTypeHandcycle ActivityType = "Handcycle" // ActivityTypeHike captures enum value "Hike" ActivityTypeHike ActivityType = "Hike" // ActivityTypeIceSkate captures enum value "IceSkate" ActivityTypeIceSkate ActivityType = "IceSkate" // ActivityTypeInlineSkate captures enum value "InlineSkate" ActivityTypeInlineSkate ActivityType = "InlineSkate" // ActivityTypeKayaking captures enum value "Kayaking" ActivityTypeKayaking ActivityType = "Kayaking" // ActivityTypeKitesurf captures enum value "Kitesurf" ActivityTypeKitesurf ActivityType = "Kitesurf" // ActivityTypeNordicSki captures enum value "NordicSki" ActivityTypeNordicSki ActivityType = "NordicSki" // ActivityTypeRide captures enum value "Ride" ActivityTypeRide ActivityType = "Ride" // ActivityTypeRockClimbing captures enum value "RockClimbing" ActivityTypeRockClimbing ActivityType = "RockClimbing" // ActivityTypeRollerSki captures enum value "RollerSki" ActivityTypeRollerSki ActivityType = "RollerSki" // ActivityTypeRowing captures enum value "Rowing" ActivityTypeRowing ActivityType = "Rowing" // ActivityTypeRun captures enum value "Run" ActivityTypeRun ActivityType = "Run" // ActivityTypeSail captures enum value "Sail" ActivityTypeSail ActivityType = "Sail" // ActivityTypeSkateboard captures enum value "Skateboard" ActivityTypeSkateboard ActivityType = "Skateboard" // ActivityTypeSnowboard captures enum value "Snowboard" ActivityTypeSnowboard ActivityType = "Snowboard" // ActivityTypeSnowshoe captures enum value "Snowshoe" ActivityTypeSnowshoe ActivityType = "Snowshoe" // ActivityTypeSoccer captures enum value "Soccer" ActivityTypeSoccer ActivityType = "Soccer" // ActivityTypeStairStepper captures enum value "StairStepper" ActivityTypeStairStepper ActivityType = "StairStepper" // ActivityTypeStandUpPaddling captures enum value "StandUpPaddling" ActivityTypeStandUpPaddling ActivityType = "StandUpPaddling" // ActivityTypeSurfing captures enum value "Surfing" ActivityTypeSurfing ActivityType = "Surfing" // ActivityTypeSwim captures enum value "Swim" ActivityTypeSwim ActivityType = "Swim" // ActivityTypeVelomobile captures enum value "Velomobile" ActivityTypeVelomobile ActivityType = "Velomobile" // ActivityTypeVirtualRide captures enum value "VirtualRide" ActivityTypeVirtualRide ActivityType = "VirtualRide" // ActivityTypeVirtualRun captures enum value "VirtualRun" ActivityTypeVirtualRun ActivityType = "VirtualRun" // ActivityTypeWalk captures enum value "Walk" ActivityTypeWalk ActivityType = "Walk" // ActivityTypeWeightTraining captures enum value "WeightTraining" ActivityTypeWeightTraining ActivityType = "WeightTraining" // ActivityTypeWheelchair captures enum value "Wheelchair" ActivityTypeWheelchair ActivityType = "Wheelchair" // ActivityTypeWindsurf captures enum value "Windsurf" ActivityTypeWindsurf ActivityType = "Windsurf" // ActivityTypeWorkout captures enum value "Workout" ActivityTypeWorkout ActivityType = "Workout" // ActivityTypeYoga captures enum value "Yoga" ActivityTypeYoga ActivityType = "Yoga" )
func NewActivityType ¶
func NewActivityType(value ActivityType) *ActivityType
func (ActivityType) ContextValidate ¶
ContextValidate validates this activity type based on context it is used
func (ActivityType) Pointer ¶ added in v0.0.5
func (m ActivityType) Pointer() *ActivityType
Pointer returns a pointer to a freshly-allocated ActivityType.
type ActivityZone ¶
type ActivityZone struct { // custom zones CustomZones bool `json:"custom_zones,omitempty"` // distribution buckets DistributionBuckets TimedZoneDistribution `json:"distribution_buckets,omitempty"` // max Max int64 `json:"max,omitempty"` // points Points int64 `json:"points,omitempty"` // score Score int64 `json:"score,omitempty"` // sensor based SensorBased bool `json:"sensor_based,omitempty"` // type // Enum: [heartrate power] Type string `json:"type,omitempty"` }
ActivityZone activity zone
swagger:model activityZone
func (*ActivityZone) ContextValidate ¶
ContextValidate validate this activity zone based on the context it is used
func (*ActivityZone) MarshalBinary ¶
func (m *ActivityZone) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ActivityZone) UnmarshalBinary ¶
func (m *ActivityZone) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AltitudeStream ¶
type AltitudeStream struct { BaseStream // The sequence of altitude values for this stream, in meters Data []float32 `json:"data"` }
AltitudeStream altitude stream
swagger:model altitudeStream
func (*AltitudeStream) ContextValidate ¶
ContextValidate validate this altitude stream based on the context it is used
func (*AltitudeStream) MarshalBinary ¶
func (m *AltitudeStream) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (AltitudeStream) MarshalJSON ¶
func (m AltitudeStream) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*AltitudeStream) UnmarshalBinary ¶
func (m *AltitudeStream) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*AltitudeStream) UnmarshalJSON ¶
func (m *AltitudeStream) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type BaseStream ¶
type BaseStream struct { // The number of data points in this stream OriginalSize int64 `json:"original_size,omitempty"` // The level of detail (sampling) in which this stream was returned // Enum: [low medium high] Resolution string `json:"resolution,omitempty"` // The base series used in the case the stream was downsampled // Enum: [distance time] SeriesType string `json:"series_type,omitempty"` }
BaseStream base stream
swagger:model baseStream
func (*BaseStream) ContextValidate ¶
ContextValidate validates this base stream based on context it is used
func (*BaseStream) MarshalBinary ¶
func (m *BaseStream) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BaseStream) UnmarshalBinary ¶
func (m *BaseStream) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CadenceStream ¶
type CadenceStream struct { BaseStream // The sequence of cadence values for this stream, in rotations per minute Data []int64 `json:"data"` }
CadenceStream cadence stream
swagger:model cadenceStream
func (*CadenceStream) ContextValidate ¶
ContextValidate validate this cadence stream based on the context it is used
func (*CadenceStream) MarshalBinary ¶
func (m *CadenceStream) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (CadenceStream) MarshalJSON ¶
func (m CadenceStream) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*CadenceStream) UnmarshalBinary ¶
func (m *CadenceStream) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*CadenceStream) UnmarshalJSON ¶
func (m *CadenceStream) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type ClubActivity ¶ added in v0.0.9
type ClubActivity struct { // athlete Athlete *MetaAthlete `json:"athlete,omitempty"` // The activity's distance, in meters Distance float32 `json:"distance,omitempty"` // The activity's elapsed time, in seconds ElapsedTime int64 `json:"elapsed_time,omitempty"` // The activity's moving time, in seconds MovingTime int64 `json:"moving_time,omitempty"` // The name of the activity Name string `json:"name,omitempty"` // sport type SportType SportType `json:"sport_type,omitempty"` // The activity's total elevation gain. TotalElevationGain float32 `json:"total_elevation_gain,omitempty"` // type Type ActivityType `json:"type,omitempty"` // The activity's workout type WorkoutType int64 `json:"workout_type,omitempty"` }
ClubActivity club activity
swagger:model clubActivity
func (*ClubActivity) ContextValidate ¶ added in v0.0.9
ContextValidate validate this club activity based on the context it is used
func (*ClubActivity) MarshalBinary ¶ added in v0.0.9
func (m *ClubActivity) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ClubActivity) UnmarshalBinary ¶ added in v0.0.9
func (m *ClubActivity) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ClubAthlete ¶ added in v0.0.9
type ClubAthlete struct { // Whether the athlete is a club admin. Admin bool `json:"admin,omitempty"` // The athlete's first name. Firstname string `json:"firstname,omitempty"` // The athlete's last initial. Lastname string `json:"lastname,omitempty"` // The athlete's member status. Member string `json:"member,omitempty"` // Whether the athlete is club owner. Owner bool `json:"owner,omitempty"` // Resource state, indicates level of detail. Possible values: 1 -> "meta", 2 -> "summary", 3 -> "detail" ResourceState int64 `json:"resource_state,omitempty"` }
ClubAthlete club athlete
swagger:model clubAthlete
func (*ClubAthlete) ContextValidate ¶ added in v0.0.9
ContextValidate validates this club athlete based on context it is used
func (*ClubAthlete) MarshalBinary ¶ added in v0.0.9
func (m *ClubAthlete) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ClubAthlete) UnmarshalBinary ¶ added in v0.0.9
func (m *ClubAthlete) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Comment ¶
type Comment struct { // The identifier of the activity this comment is related to ActivityID int64 `json:"activity_id,omitempty"` // athlete Athlete *SummaryAthlete `json:"athlete,omitempty"` // The time at which this comment was created. // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` // The unique identifier of this comment ID int64 `json:"id,omitempty"` // The content of the comment Text string `json:"text,omitempty"` }
Comment comment
swagger:model comment
func (*Comment) ContextValidate ¶
ContextValidate validate this comment based on the context it is used
func (*Comment) MarshalBinary ¶
MarshalBinary interface implementation
func (*Comment) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type DetailedActivity ¶
type DetailedActivity struct { SummaryActivity // best efforts BestEfforts []*DetailedSegmentEffort `json:"best_efforts"` // The number of kilocalories consumed during this activity Calories float32 `json:"calories,omitempty"` // The description of the activity Description string `json:"description,omitempty"` // The name of the device used to record the activity DeviceName string `json:"device_name,omitempty"` // The token used to embed a Strava activity EmbedToken string `json:"embed_token,omitempty"` // gear Gear *SummaryGear `json:"gear,omitempty"` // laps Laps []*Lap `json:"laps"` // photos Photos *PhotosSummary `json:"photos,omitempty"` // segment efforts SegmentEfforts []*DetailedSegmentEffort `json:"segment_efforts"` // The splits of this activity in metric units (for runs) SplitsMetric []*Split `json:"splits_metric"` // The splits of this activity in imperial units (for runs) SplitsStandard []*Split `json:"splits_standard"` }
DetailedActivity detailed activity
swagger:model detailedActivity
func (*DetailedActivity) ContextValidate ¶
ContextValidate validate this detailed activity based on the context it is used
func (*DetailedActivity) MarshalBinary ¶
func (m *DetailedActivity) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (DetailedActivity) MarshalJSON ¶
func (m DetailedActivity) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*DetailedActivity) UnmarshalBinary ¶
func (m *DetailedActivity) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*DetailedActivity) UnmarshalJSON ¶
func (m *DetailedActivity) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type DetailedAthlete ¶
type DetailedAthlete struct { SummaryAthlete // The athlete's bikes. Bikes []*SummaryGear `json:"bikes"` // The athlete's clubs. Clubs []*SummaryClub `json:"clubs"` // The athlete's follower count. FollowerCount int64 `json:"follower_count,omitempty"` // The athlete's friend count. FriendCount int64 `json:"friend_count,omitempty"` // The athlete's FTP (Functional Threshold Power). Ftp int64 `json:"ftp,omitempty"` // The athlete's preferred unit system. // Enum: [feet meters] MeasurementPreference string `json:"measurement_preference,omitempty"` // The athlete's shoes. Shoes []*SummaryGear `json:"shoes"` // The athlete's weight. Weight float32 `json:"weight,omitempty"` }
DetailedAthlete detailed athlete
swagger:model detailedAthlete
func (*DetailedAthlete) ContextValidate ¶
ContextValidate validate this detailed athlete based on the context it is used
func (*DetailedAthlete) MarshalBinary ¶
func (m *DetailedAthlete) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (DetailedAthlete) MarshalJSON ¶
func (m DetailedAthlete) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*DetailedAthlete) UnmarshalBinary ¶
func (m *DetailedAthlete) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*DetailedAthlete) UnmarshalJSON ¶
func (m *DetailedAthlete) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type DetailedClub ¶
type DetailedClub struct { SummaryClub // Whether the currently logged-in athlete is an administrator of this club. Admin bool `json:"admin,omitempty"` // The number of athletes in the club that the logged-in athlete follows. FollowingCount int64 `json:"following_count,omitempty"` // The membership status of the logged-in athlete. // Enum: [member pending] Membership string `json:"membership,omitempty"` // Whether the currently logged-in athlete is the owner of this club. Owner bool `json:"owner,omitempty"` }
DetailedClub detailed club
swagger:model detailedClub
func (*DetailedClub) ContextValidate ¶
ContextValidate validate this detailed club based on the context it is used
func (*DetailedClub) MarshalBinary ¶
func (m *DetailedClub) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (DetailedClub) MarshalJSON ¶
func (m DetailedClub) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*DetailedClub) UnmarshalBinary ¶
func (m *DetailedClub) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*DetailedClub) UnmarshalJSON ¶
func (m *DetailedClub) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type DetailedGear ¶
type DetailedGear struct { SummaryGear // The gear's brand name. BrandName string `json:"brand_name,omitempty"` // The gear's description. Description string `json:"description,omitempty"` // The gear's frame type (bike only). FrameType int64 `json:"frame_type,omitempty"` // The gear's model name. ModelName string `json:"model_name,omitempty"` }
DetailedGear detailed gear
swagger:model detailedGear
func (*DetailedGear) ContextValidate ¶
ContextValidate validate this detailed gear based on the context it is used
func (*DetailedGear) MarshalBinary ¶
func (m *DetailedGear) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (DetailedGear) MarshalJSON ¶
func (m DetailedGear) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*DetailedGear) UnmarshalBinary ¶
func (m *DetailedGear) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*DetailedGear) UnmarshalJSON ¶
func (m *DetailedGear) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type DetailedSegment ¶
type DetailedSegment struct { SummarySegment // The number of unique athletes who have an effort for this segment AthleteCount int64 `json:"athlete_count,omitempty"` // The time at which the segment was created. // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` // The total number of efforts for this segment EffortCount int64 `json:"effort_count,omitempty"` // Whether this segment is considered hazardous Hazardous bool `json:"hazardous,omitempty"` // map Map *PolylineMap `json:"map,omitempty"` // The number of stars for this segment StarCount int64 `json:"star_count,omitempty"` // The segment's total elevation gain. TotalElevationGain float32 `json:"total_elevation_gain,omitempty"` // The time at which the segment was last updated. // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` }
DetailedSegment detailed segment
swagger:model detailedSegment
func (*DetailedSegment) ContextValidate ¶
ContextValidate validate this detailed segment based on the context it is used
func (*DetailedSegment) MarshalBinary ¶
func (m *DetailedSegment) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (DetailedSegment) MarshalJSON ¶
func (m DetailedSegment) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*DetailedSegment) UnmarshalBinary ¶
func (m *DetailedSegment) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*DetailedSegment) UnmarshalJSON ¶
func (m *DetailedSegment) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type DetailedSegmentEffort ¶
type DetailedSegmentEffort struct { SummarySegmentEffort // activity Activity *MetaActivity `json:"activity,omitempty"` // athlete Athlete *MetaAthlete `json:"athlete,omitempty"` // The effort's average cadence AverageCadence float32 `json:"average_cadence,omitempty"` // The heart heart rate of the athlete during this effort AverageHeartrate float32 `json:"average_heartrate,omitempty"` // The average wattage of this effort AverageWatts float32 `json:"average_watts,omitempty"` // For riding efforts, whether the wattage was reported by a dedicated recording device DeviceWatts bool `json:"device_watts,omitempty"` // The end index of this effort in its activity's stream EndIndex int64 `json:"end_index,omitempty"` // Whether this effort should be hidden when viewed within an activity Hidden bool `json:"hidden,omitempty"` // The rank of the effort on the global leaderboard if it belongs in the top 10 at the time of upload // Maximum: 10 // Minimum: 1 KomRank int64 `json:"kom_rank,omitempty"` // The maximum heart rate of the athlete during this effort MaxHeartrate float32 `json:"max_heartrate,omitempty"` // The effort's moving time MovingTime int64 `json:"moving_time,omitempty"` // The name of the segment on which this effort was performed Name string `json:"name,omitempty"` // The rank of the effort on the athlete's leaderboard if it belongs in the top 3 at the time of upload // Maximum: 3 // Minimum: 1 PrRank int64 `json:"pr_rank,omitempty"` // segment Segment *SummarySegment `json:"segment,omitempty"` // The start index of this effort in its activity's stream StartIndex int64 `json:"start_index,omitempty"` }
DetailedSegmentEffort detailed segment effort
swagger:model detailedSegmentEffort
func (*DetailedSegmentEffort) ContextValidate ¶
ContextValidate validate this detailed segment effort based on the context it is used
func (*DetailedSegmentEffort) MarshalBinary ¶
func (m *DetailedSegmentEffort) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (DetailedSegmentEffort) MarshalJSON ¶
func (m DetailedSegmentEffort) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*DetailedSegmentEffort) UnmarshalBinary ¶
func (m *DetailedSegmentEffort) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*DetailedSegmentEffort) UnmarshalJSON ¶
func (m *DetailedSegmentEffort) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type DistanceStream ¶
type DistanceStream struct { BaseStream // The sequence of distance values for this stream, in meters Data []float32 `json:"data"` }
DistanceStream distance stream
swagger:model distanceStream
func (*DistanceStream) ContextValidate ¶
ContextValidate validate this distance stream based on the context it is used
func (*DistanceStream) MarshalBinary ¶
func (m *DistanceStream) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (DistanceStream) MarshalJSON ¶
func (m DistanceStream) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*DistanceStream) UnmarshalBinary ¶
func (m *DistanceStream) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*DistanceStream) UnmarshalJSON ¶
func (m *DistanceStream) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type Error ¶
type Error struct { // The code associated with this error. Code string `json:"code,omitempty"` // The specific field or aspect of the resource associated with this error. Field string `json:"field,omitempty"` // The type of resource associated with this error. Resource string `json:"resource,omitempty"` }
Error error
swagger:model error
func (*Error) ContextValidate ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ExplorerResponse ¶
type ExplorerResponse struct { // The set of segments matching an explorer request Segments []*ExplorerSegment `json:"segments"` }
ExplorerResponse explorer response
swagger:model explorerResponse
func (*ExplorerResponse) ContextValidate ¶
ContextValidate validate this explorer response based on the context it is used
func (*ExplorerResponse) MarshalBinary ¶
func (m *ExplorerResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ExplorerResponse) UnmarshalBinary ¶
func (m *ExplorerResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ExplorerSegment ¶
type ExplorerSegment struct { // The segment's average grade, in percents AvgGrade float32 `json:"avg_grade,omitempty"` // The category of the climb [0, 5]. Higher is harder ie. 5 is Hors catégorie, 0 is uncategorized in climb_category. If climb_category = 5, climb_category_desc = HC. If climb_category = 2, climb_category_desc = 3. // Maximum: 5 // Minimum: 0 ClimbCategory *int64 `json:"climb_category,omitempty"` // The description for the category of the climb // Enum: [NC 4 3 2 1 HC] ClimbCategoryDesc string `json:"climb_category_desc,omitempty"` // The segment's distance, in meters Distance float32 `json:"distance,omitempty"` // The segments's evelation difference, in meters ElevDifference float32 `json:"elev_difference,omitempty"` // end latlng EndLatlng LatLng `json:"end_latlng,omitempty"` // The unique identifier of this segment ID int64 `json:"id,omitempty"` // The name of this segment Name string `json:"name,omitempty"` // The polyline of the segment Points string `json:"points,omitempty"` // start latlng StartLatlng LatLng `json:"start_latlng,omitempty"` }
ExplorerSegment explorer segment
swagger:model explorerSegment
func (*ExplorerSegment) ContextValidate ¶
ContextValidate validate this explorer segment based on the context it is used
func (*ExplorerSegment) MarshalBinary ¶
func (m *ExplorerSegment) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ExplorerSegment) UnmarshalBinary ¶
func (m *ExplorerSegment) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Fault ¶
type Fault struct { // The set of specific errors associated with this fault, if any. Errors []*Error `json:"errors"` // The message of the fault. Message string `json:"message,omitempty"` }
Fault Encapsulates the errors that may be returned from the API.
swagger:model fault
func (*Fault) ContextValidate ¶
ContextValidate validate this fault based on the context it is used
func (*Fault) MarshalBinary ¶
MarshalBinary interface implementation
func (*Fault) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type HeartRateZoneRanges ¶
type HeartRateZoneRanges struct { // Whether the athlete has set their own custom heart rate zones CustomZones bool `json:"custom_zones,omitempty"` // zones Zones ZoneRanges `json:"zones,omitempty"` }
HeartRateZoneRanges heart rate zone ranges
swagger:model heartRateZoneRanges
func (*HeartRateZoneRanges) ContextValidate ¶
ContextValidate validate this heart rate zone ranges based on the context it is used
func (*HeartRateZoneRanges) MarshalBinary ¶
func (m *HeartRateZoneRanges) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*HeartRateZoneRanges) UnmarshalBinary ¶
func (m *HeartRateZoneRanges) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type HeartrateStream ¶
type HeartrateStream struct { BaseStream // The sequence of heart rate values for this stream, in beats per minute Data []int64 `json:"data"` }
HeartrateStream heartrate stream
swagger:model heartrateStream
func (*HeartrateStream) ContextValidate ¶
ContextValidate validate this heartrate stream based on the context it is used
func (*HeartrateStream) MarshalBinary ¶
func (m *HeartrateStream) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (HeartrateStream) MarshalJSON ¶
func (m HeartrateStream) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*HeartrateStream) UnmarshalBinary ¶
func (m *HeartrateStream) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*HeartrateStream) UnmarshalJSON ¶
func (m *HeartrateStream) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type Lap ¶
type Lap struct { // activity Activity *MetaActivity `json:"activity,omitempty"` // athlete Athlete *MetaAthlete `json:"athlete,omitempty"` // The lap's average cadence AverageCadence float32 `json:"average_cadence,omitempty"` // The lap's average speed AverageSpeed float32 `json:"average_speed,omitempty"` // The lap's distance, in meters Distance float32 `json:"distance,omitempty"` // The lap's elapsed time, in seconds ElapsedTime int64 `json:"elapsed_time,omitempty"` // The end index of this effort in its activity's stream EndIndex int64 `json:"end_index,omitempty"` // The unique identifier of this lap ID int64 `json:"id,omitempty"` // The index of this lap in the activity it belongs to LapIndex int64 `json:"lap_index,omitempty"` // The maximum speed of this lat, in meters per second MaxSpeed float32 `json:"max_speed,omitempty"` // The lap's moving time, in seconds MovingTime int64 `json:"moving_time,omitempty"` // The name of the lap Name string `json:"name,omitempty"` // The athlete's pace zone during this lap PaceZone int64 `json:"pace_zone,omitempty"` // split Split int64 `json:"split,omitempty"` // The time at which the lap was started. // Format: date-time StartDate strfmt.DateTime `json:"start_date,omitempty"` // The time at which the lap was started in the local timezone. // Format: date-time StartDateLocal strfmt.DateTime `json:"start_date_local,omitempty"` // The start index of this effort in its activity's stream StartIndex int64 `json:"start_index,omitempty"` // The elevation gain of this lap, in meters TotalElevationGain float32 `json:"total_elevation_gain,omitempty"` }
Lap lap
swagger:model lap
func (*Lap) ContextValidate ¶
ContextValidate validate this lap based on the context it is used
func (*Lap) MarshalBinary ¶
MarshalBinary interface implementation
func (*Lap) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type LatLng ¶
type LatLng []float32
LatLng A pair of latitude/longitude coordinates, represented as an array of 2 floating point numbers.
swagger:model latLng
func (LatLng) ContextValidate ¶
ContextValidate validates this lat lng based on context it is used
type LatLngStream ¶
type LatLngStream struct { BaseStream // The sequence of lat/long values for this stream Data []LatLng `json:"data"` }
LatLngStream lat lng stream
swagger:model latLngStream
func (*LatLngStream) ContextValidate ¶
ContextValidate validate this lat lng stream based on the context it is used
func (*LatLngStream) MarshalBinary ¶
func (m *LatLngStream) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (LatLngStream) MarshalJSON ¶
func (m LatLngStream) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*LatLngStream) UnmarshalBinary ¶
func (m *LatLngStream) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*LatLngStream) UnmarshalJSON ¶
func (m *LatLngStream) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type MetaActivity ¶
type MetaActivity struct { // The unique identifier of the activity ID int64 `json:"id,omitempty"` }
MetaActivity meta activity
swagger:model metaActivity
func (*MetaActivity) ContextValidate ¶
ContextValidate validates this meta activity based on context it is used
func (*MetaActivity) MarshalBinary ¶
func (m *MetaActivity) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MetaActivity) UnmarshalBinary ¶
func (m *MetaActivity) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MetaAthlete ¶
type MetaAthlete struct { // The unique identifier of the athlete ID int64 `json:"id,omitempty"` }
MetaAthlete meta athlete
swagger:model metaAthlete
func (*MetaAthlete) ContextValidate ¶
ContextValidate validates this meta athlete based on context it is used
func (*MetaAthlete) MarshalBinary ¶
func (m *MetaAthlete) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MetaAthlete) UnmarshalBinary ¶
func (m *MetaAthlete) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MetaClub ¶
type MetaClub struct { // The club's unique identifier. ID int64 `json:"id,omitempty"` // The club's name. Name string `json:"name,omitempty"` // Resource state, indicates level of detail. Possible values: 1 -> "meta", 2 -> "summary", 3 -> "detail" ResourceState int64 `json:"resource_state,omitempty"` }
MetaClub meta club
swagger:model metaClub
func (*MetaClub) ContextValidate ¶
ContextValidate validates this meta club based on context it is used
func (*MetaClub) MarshalBinary ¶
MarshalBinary interface implementation
func (*MetaClub) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type MovingStream ¶
type MovingStream struct { BaseStream // The sequence of moving values for this stream, as boolean values Data []bool `json:"data"` }
MovingStream moving stream
swagger:model movingStream
func (*MovingStream) ContextValidate ¶
ContextValidate validate this moving stream based on the context it is used
func (*MovingStream) MarshalBinary ¶
func (m *MovingStream) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (MovingStream) MarshalJSON ¶
func (m MovingStream) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*MovingStream) UnmarshalBinary ¶
func (m *MovingStream) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*MovingStream) UnmarshalJSON ¶
func (m *MovingStream) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PhotosSummary ¶
type PhotosSummary struct { // The number of photos Count int64 `json:"count,omitempty"` // primary Primary *PhotosSummaryPrimary `json:"primary,omitempty"` }
PhotosSummary photos summary
swagger:model photosSummary
func (*PhotosSummary) ContextValidate ¶
ContextValidate validate this photos summary based on the context it is used
func (*PhotosSummary) MarshalBinary ¶
func (m *PhotosSummary) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PhotosSummary) UnmarshalBinary ¶
func (m *PhotosSummary) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PhotosSummaryPrimary ¶
type PhotosSummaryPrimary struct { // id ID int64 `json:"id,omitempty"` // source Source int64 `json:"source,omitempty"` // unique id UniqueID string `json:"unique_id,omitempty"` // urls Urls map[string]string `json:"urls,omitempty"` }
PhotosSummaryPrimary photos summary primary
swagger:model PhotosSummaryPrimary
func (*PhotosSummaryPrimary) ContextValidate ¶
ContextValidate validates this photos summary primary based on context it is used
func (*PhotosSummaryPrimary) MarshalBinary ¶
func (m *PhotosSummaryPrimary) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PhotosSummaryPrimary) UnmarshalBinary ¶
func (m *PhotosSummaryPrimary) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PolylineMap ¶
type PolylineMap struct { // The identifier of the map ID string `json:"id,omitempty"` // The polyline of the map, only returned on detailed representation of an object Polyline string `json:"polyline,omitempty"` // The summary polyline of the map SummaryPolyline string `json:"summary_polyline,omitempty"` }
PolylineMap polyline map
swagger:model polylineMap
func (*PolylineMap) ContextValidate ¶
ContextValidate validates this polyline map based on context it is used
func (*PolylineMap) MarshalBinary ¶
func (m *PolylineMap) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PolylineMap) UnmarshalBinary ¶
func (m *PolylineMap) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PowerStream ¶
type PowerStream struct { BaseStream // The sequence of power values for this stream, in watts Data []int64 `json:"data"` }
PowerStream power stream
swagger:model powerStream
func (*PowerStream) ContextValidate ¶
ContextValidate validate this power stream based on the context it is used
func (*PowerStream) MarshalBinary ¶
func (m *PowerStream) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (PowerStream) MarshalJSON ¶
func (m PowerStream) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*PowerStream) UnmarshalBinary ¶
func (m *PowerStream) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*PowerStream) UnmarshalJSON ¶
func (m *PowerStream) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type PowerZoneRanges ¶
type PowerZoneRanges struct { // zones Zones ZoneRanges `json:"zones,omitempty"` }
PowerZoneRanges power zone ranges
swagger:model powerZoneRanges
func (*PowerZoneRanges) ContextValidate ¶
ContextValidate validate this power zone ranges based on the context it is used
func (*PowerZoneRanges) MarshalBinary ¶
func (m *PowerZoneRanges) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PowerZoneRanges) UnmarshalBinary ¶
func (m *PowerZoneRanges) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Route ¶
type Route struct { // athlete Athlete *SummaryAthlete `json:"athlete,omitempty"` // The time at which the route was created // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` // The description of the route Description string `json:"description,omitempty"` // The route's distance, in meters Distance float32 `json:"distance,omitempty"` // The route's elevation gain. ElevationGain float32 `json:"elevation_gain,omitempty"` // Estimated time in seconds for the authenticated athlete to complete route EstimatedMovingTime int64 `json:"estimated_moving_time,omitempty"` // The unique identifier of this route ID int64 `json:"id,omitempty"` // The unique identifier of the route in string format IDStr string `json:"id_str,omitempty"` // map Map *PolylineMap `json:"map,omitempty"` // The name of this route Name string `json:"name,omitempty"` // Whether this route is private Private bool `json:"private,omitempty"` // The segments traversed by this route Segments []*SummarySegment `json:"segments"` // Whether this route is starred by the logged-in athlete Starred bool `json:"starred,omitempty"` // This route's sub-type (1 for road, 2 for mountain bike, 3 for cross, 4 for trail, 5 for mixed) SubType int64 `json:"sub_type,omitempty"` // An epoch timestamp of when the route was created Timestamp int64 `json:"timestamp,omitempty"` // This route's type (1 for ride, 2 for runs) Type int64 `json:"type,omitempty"` // The time at which the route was last updated // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` }
Route route
swagger:model route
func (*Route) ContextValidate ¶
ContextValidate validate this route based on the context it is used
func (*Route) MarshalBinary ¶
MarshalBinary interface implementation
func (*Route) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SmoothGradeStream ¶
type SmoothGradeStream struct { BaseStream // The sequence of grade values for this stream, as percents of a grade Data []float32 `json:"data"` }
SmoothGradeStream smooth grade stream
swagger:model smoothGradeStream
func (*SmoothGradeStream) ContextValidate ¶
ContextValidate validate this smooth grade stream based on the context it is used
func (*SmoothGradeStream) MarshalBinary ¶
func (m *SmoothGradeStream) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (SmoothGradeStream) MarshalJSON ¶
func (m SmoothGradeStream) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*SmoothGradeStream) UnmarshalBinary ¶
func (m *SmoothGradeStream) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*SmoothGradeStream) UnmarshalJSON ¶
func (m *SmoothGradeStream) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type SmoothVelocityStream ¶
type SmoothVelocityStream struct { BaseStream // The sequence of velocity values for this stream, in meters per second Data []float32 `json:"data"` }
SmoothVelocityStream smooth velocity stream
swagger:model smoothVelocityStream
func (*SmoothVelocityStream) ContextValidate ¶
ContextValidate validate this smooth velocity stream based on the context it is used
func (*SmoothVelocityStream) MarshalBinary ¶
func (m *SmoothVelocityStream) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (SmoothVelocityStream) MarshalJSON ¶
func (m SmoothVelocityStream) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*SmoothVelocityStream) UnmarshalBinary ¶
func (m *SmoothVelocityStream) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*SmoothVelocityStream) UnmarshalJSON ¶
func (m *SmoothVelocityStream) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type Split ¶
type Split struct { // The average speed of this split, in meters per second AverageSpeed float32 `json:"average_speed,omitempty"` // The distance of this split, in meters Distance float32 `json:"distance,omitempty"` // The elapsed time of this split, in seconds ElapsedTime int64 `json:"elapsed_time,omitempty"` // The elevation difference of this split, in meters ElevationDifference float32 `json:"elevation_difference,omitempty"` // The moving time of this split, in seconds MovingTime int64 `json:"moving_time,omitempty"` // The pacing zone of this split PaceZone int64 `json:"pace_zone,omitempty"` // N/A Split int64 `json:"split,omitempty"` }
Split split
swagger:model split
func (*Split) ContextValidate ¶
ContextValidate validates this split based on context it is used
func (*Split) MarshalBinary ¶
MarshalBinary interface implementation
func (*Split) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SportType ¶ added in v0.0.5
type SportType string
SportType An enumeration of the sport types an activity may have. Distinct from ActivityType in that it has new types (e.g. MountainBikeRide)
swagger:model sportType
const ( // SportTypeAlpineSki captures enum value "AlpineSki" SportTypeAlpineSki SportType = "AlpineSki" // SportTypeBackcountrySki captures enum value "BackcountrySki" SportTypeBackcountrySki SportType = "BackcountrySki" // SportTypeBadminton captures enum value "Badminton" SportTypeBadminton SportType = "Badminton" // SportTypeCanoeing captures enum value "Canoeing" SportTypeCanoeing SportType = "Canoeing" // SportTypeCrossfit captures enum value "Crossfit" SportTypeCrossfit SportType = "Crossfit" // SportTypeEBikeRide captures enum value "EBikeRide" SportTypeEBikeRide SportType = "EBikeRide" // SportTypeElliptical captures enum value "Elliptical" SportTypeElliptical SportType = "Elliptical" // SportTypeEMountainBikeRide captures enum value "EMountainBikeRide" SportTypeEMountainBikeRide SportType = "EMountainBikeRide" // SportTypeGolf captures enum value "Golf" SportTypeGolf SportType = "Golf" // SportTypeGravelRide captures enum value "GravelRide" SportTypeGravelRide SportType = "GravelRide" // SportTypeHandcycle captures enum value "Handcycle" SportTypeHandcycle SportType = "Handcycle" // SportTypeHighIntensityIntervalTraining captures enum value "HighIntensityIntervalTraining" SportTypeHighIntensityIntervalTraining SportType = "HighIntensityIntervalTraining" // SportTypeHike captures enum value "Hike" SportTypeHike SportType = "Hike" // SportTypeIceSkate captures enum value "IceSkate" SportTypeIceSkate SportType = "IceSkate" // SportTypeInlineSkate captures enum value "InlineSkate" SportTypeInlineSkate SportType = "InlineSkate" // SportTypeKayaking captures enum value "Kayaking" SportTypeKayaking SportType = "Kayaking" // SportTypeKitesurf captures enum value "Kitesurf" SportTypeKitesurf SportType = "Kitesurf" // SportTypeMountainBikeRide captures enum value "MountainBikeRide" SportTypeMountainBikeRide SportType = "MountainBikeRide" // SportTypeNordicSki captures enum value "NordicSki" SportTypeNordicSki SportType = "NordicSki" // SportTypePickleball captures enum value "Pickleball" SportTypePickleball SportType = "Pickleball" // SportTypePilates captures enum value "Pilates" SportTypePilates SportType = "Pilates" // SportTypeRacquetball captures enum value "Racquetball" SportTypeRacquetball SportType = "Racquetball" // SportTypeRide captures enum value "Ride" SportTypeRide SportType = "Ride" // SportTypeRockClimbing captures enum value "RockClimbing" SportTypeRockClimbing SportType = "RockClimbing" // SportTypeRollerSki captures enum value "RollerSki" SportTypeRollerSki SportType = "RollerSki" // SportTypeRowing captures enum value "Rowing" SportTypeRowing SportType = "Rowing" // SportTypeRun captures enum value "Run" SportTypeRun SportType = "Run" // SportTypeSail captures enum value "Sail" SportTypeSail SportType = "Sail" // SportTypeSkateboard captures enum value "Skateboard" SportTypeSkateboard SportType = "Skateboard" // SportTypeSnowboard captures enum value "Snowboard" SportTypeSnowboard SportType = "Snowboard" // SportTypeSnowshoe captures enum value "Snowshoe" SportTypeSnowshoe SportType = "Snowshoe" // SportTypeSoccer captures enum value "Soccer" SportTypeSoccer SportType = "Soccer" // SportTypeSquash captures enum value "Squash" SportTypeSquash SportType = "Squash" // SportTypeStairStepper captures enum value "StairStepper" SportTypeStairStepper SportType = "StairStepper" // SportTypeStandUpPaddling captures enum value "StandUpPaddling" SportTypeStandUpPaddling SportType = "StandUpPaddling" // SportTypeSurfing captures enum value "Surfing" SportTypeSurfing SportType = "Surfing" // SportTypeSwim captures enum value "Swim" SportTypeSwim SportType = "Swim" // SportTypeTableTennis captures enum value "TableTennis" SportTypeTableTennis SportType = "TableTennis" // SportTypeTennis captures enum value "Tennis" SportTypeTennis SportType = "Tennis" // SportTypeTrailRun captures enum value "TrailRun" SportTypeTrailRun SportType = "TrailRun" // SportTypeVelomobile captures enum value "Velomobile" SportTypeVelomobile SportType = "Velomobile" // SportTypeVirtualRide captures enum value "VirtualRide" SportTypeVirtualRide SportType = "VirtualRide" // SportTypeVirtualRow captures enum value "VirtualRow" SportTypeVirtualRow SportType = "VirtualRow" // SportTypeVirtualRun captures enum value "VirtualRun" SportTypeVirtualRun SportType = "VirtualRun" // SportTypeWalk captures enum value "Walk" SportTypeWalk SportType = "Walk" // SportTypeWeightTraining captures enum value "WeightTraining" SportTypeWeightTraining SportType = "WeightTraining" // SportTypeWheelchair captures enum value "Wheelchair" SportTypeWheelchair SportType = "Wheelchair" // SportTypeWindsurf captures enum value "Windsurf" SportTypeWindsurf SportType = "Windsurf" // SportTypeWorkout captures enum value "Workout" SportTypeWorkout SportType = "Workout" // SportTypeYoga captures enum value "Yoga" SportTypeYoga SportType = "Yoga" )
func NewSportType ¶ added in v0.0.5
func (SportType) ContextValidate ¶ added in v0.0.5
ContextValidate validates this sport type based on context it is used
type StreamSet ¶
type StreamSet struct { // altitude Altitude *AltitudeStream `json:"altitude,omitempty"` // cadence Cadence *CadenceStream `json:"cadence,omitempty"` // distance Distance *DistanceStream `json:"distance,omitempty"` // grade smooth GradeSmooth *SmoothGradeStream `json:"grade_smooth,omitempty"` // heartrate Heartrate *HeartrateStream `json:"heartrate,omitempty"` // latlng Latlng *LatLngStream `json:"latlng,omitempty"` // moving Moving *MovingStream `json:"moving,omitempty"` // temp Temp *TemperatureStream `json:"temp,omitempty"` // time Time *TimeStream `json:"time,omitempty"` // velocity smooth VelocitySmooth *SmoothVelocityStream `json:"velocity_smooth,omitempty"` // watts Watts *PowerStream `json:"watts,omitempty"` }
StreamSet stream set
swagger:model streamSet
func (*StreamSet) ContextValidate ¶
ContextValidate validate this stream set based on the context it is used
func (*StreamSet) MarshalBinary ¶
MarshalBinary interface implementation
func (*StreamSet) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SummaryActivity ¶
type SummaryActivity struct { MetaActivity // The number of achievements gained during this activity AchievementCount int64 `json:"achievement_count,omitempty"` // athlete Athlete *MetaAthlete `json:"athlete,omitempty"` // The number of athletes for taking part in a group activity // Minimum: 1 AthleteCount int64 `json:"athlete_count,omitempty"` // The activity's average speed, in meters per second AverageSpeed float32 `json:"average_speed,omitempty"` // Average power output in watts during this activity. Rides only AverageWatts float32 `json:"average_watts,omitempty"` // The number of comments for this activity CommentCount int64 `json:"comment_count,omitempty"` // Whether this activity is a commute Commute bool `json:"commute,omitempty"` // Whether the watts are from a power meter, false if estimated DeviceWatts bool `json:"device_watts,omitempty"` // The activity's distance, in meters Distance float32 `json:"distance,omitempty"` // The activity's elapsed time, in seconds ElapsedTime int64 `json:"elapsed_time,omitempty"` // The activity's highest elevation, in meters ElevHigh float32 `json:"elev_high,omitempty"` // The activity's lowest elevation, in meters ElevLow float32 `json:"elev_low,omitempty"` // end latlng EndLatlng LatLng `json:"end_latlng,omitempty"` // The identifier provided at upload time ExternalID string `json:"external_id,omitempty"` // Whether this activity is flagged Flagged bool `json:"flagged,omitempty"` // The id of the gear for the activity GearID string `json:"gear_id,omitempty"` // Whether the logged-in athlete has kudoed this activity HasKudoed bool `json:"has_kudoed,omitempty"` // Whether the activity is muted HideFromHome bool `json:"hide_from_home,omitempty"` // The total work done in kilojoules during this activity. Rides only Kilojoules float32 `json:"kilojoules,omitempty"` // The number of kudos given for this activity KudosCount int64 `json:"kudos_count,omitempty"` // Whether this activity was created manually Manual bool `json:"manual,omitempty"` // map Map *PolylineMap `json:"map,omitempty"` // The activity's max speed, in meters per second MaxSpeed float32 `json:"max_speed,omitempty"` // Rides with power meter data only MaxWatts int64 `json:"max_watts,omitempty"` // The activity's moving time, in seconds MovingTime int64 `json:"moving_time,omitempty"` // The name of the activity Name string `json:"name,omitempty"` // The number of Instagram photos for this activity PhotoCount int64 `json:"photo_count,omitempty"` // Whether this activity is private Private bool `json:"private,omitempty"` // sport type SportType SportType `json:"sport_type,omitempty"` // The time at which the activity was started. // Format: date-time StartDate strfmt.DateTime `json:"start_date,omitempty"` // The time at which the activity was started in the local timezone. // Format: date-time StartDateLocal strfmt.DateTime `json:"start_date_local,omitempty"` // start latlng StartLatlng LatLng `json:"start_latlng,omitempty"` // The timezone of the activity Timezone string `json:"timezone,omitempty"` // The activity's total elevation gain. TotalElevationGain float32 `json:"total_elevation_gain,omitempty"` // The number of Instagram and Strava photos for this activity TotalPhotoCount int64 `json:"total_photo_count,omitempty"` // Whether this activity was recorded on a training machine Trainer bool `json:"trainer,omitempty"` // type Type ActivityType `json:"type,omitempty"` // The identifier of the upload that resulted in this activity UploadID int64 `json:"upload_id,omitempty"` // The unique identifier of the upload in string format UploadIDStr string `json:"upload_id_str,omitempty"` // Similar to Normalized Power. Rides with power meter data only WeightedAverageWatts int64 `json:"weighted_average_watts,omitempty"` // The activity's workout type WorkoutType int64 `json:"workout_type,omitempty"` }
SummaryActivity summary activity
swagger:model summaryActivity
func (*SummaryActivity) ContextValidate ¶
ContextValidate validate this summary activity based on the context it is used
func (*SummaryActivity) MarshalBinary ¶
func (m *SummaryActivity) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (SummaryActivity) MarshalJSON ¶
func (m SummaryActivity) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*SummaryActivity) UnmarshalBinary ¶
func (m *SummaryActivity) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*SummaryActivity) UnmarshalJSON ¶
func (m *SummaryActivity) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type SummaryAthlete ¶
type SummaryAthlete struct { MetaAthlete // The athlete's city. City string `json:"city,omitempty"` // The athlete's country. Country string `json:"country,omitempty"` // The time at which the athlete was created. // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` // The athlete's first name. Firstname string `json:"firstname,omitempty"` // The athlete's last name. Lastname string `json:"lastname,omitempty"` // Deprecated. Use summit field instead. Whether the athlete has any Summit subscription. Premium bool `json:"premium,omitempty"` // URL to a 124x124 pixel profile picture. Profile string `json:"profile,omitempty"` // URL to a 62x62 pixel profile picture. ProfileMedium string `json:"profile_medium,omitempty"` // Resource state, indicates level of detail. Possible values: 1 -> "meta", 2 -> "summary", 3 -> "detail" ResourceState int64 `json:"resource_state,omitempty"` // The athlete's sex. // Enum: [M F] Sex string `json:"sex,omitempty"` // The athlete's state or geographical region. State string `json:"state,omitempty"` // Whether the athlete has any Summit subscription. Summit bool `json:"summit,omitempty"` // The time at which the athlete was last updated. // Format: date-time UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` }
SummaryAthlete summary athlete
swagger:model summaryAthlete
func (*SummaryAthlete) ContextValidate ¶
ContextValidate validate this summary athlete based on the context it is used
func (*SummaryAthlete) MarshalBinary ¶
func (m *SummaryAthlete) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (SummaryAthlete) MarshalJSON ¶
func (m SummaryAthlete) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*SummaryAthlete) UnmarshalBinary ¶
func (m *SummaryAthlete) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*SummaryAthlete) UnmarshalJSON ¶
func (m *SummaryAthlete) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type SummaryClub ¶
type SummaryClub struct { MetaClub // The activity types that count for a club. This takes precedence over sport_type. ActivityTypes []ActivityType `json:"activity_types"` // The club's city. City string `json:"city,omitempty"` // The club's country. Country string `json:"country,omitempty"` // URL to a ~1185x580 pixel cover photo. CoverPhoto string `json:"cover_photo,omitempty"` // URL to a ~360x176 pixel cover photo. CoverPhotoSmall string `json:"cover_photo_small,omitempty"` // Whether the club is featured or not. Featured bool `json:"featured,omitempty"` // The club's member count. MemberCount int64 `json:"member_count,omitempty"` // Whether the club is private. Private bool `json:"private,omitempty"` // URL to a 60x60 pixel profile picture. ProfileMedium string `json:"profile_medium,omitempty"` // Deprecated. Prefer to use activity_types. // Enum: [cycling running triathlon other] SportType string `json:"sport_type,omitempty"` // The club's state or geographical region. State string `json:"state,omitempty"` // The club's vanity URL. URL string `json:"url,omitempty"` // Whether the club is verified or not. Verified bool `json:"verified,omitempty"` }
SummaryClub summary club
swagger:model summaryClub
func (*SummaryClub) ContextValidate ¶
ContextValidate validate this summary club based on the context it is used
func (*SummaryClub) MarshalBinary ¶
func (m *SummaryClub) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (SummaryClub) MarshalJSON ¶
func (m SummaryClub) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*SummaryClub) UnmarshalBinary ¶
func (m *SummaryClub) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*SummaryClub) UnmarshalJSON ¶
func (m *SummaryClub) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type SummaryGear ¶
type SummaryGear struct { // The distance logged with this gear. Distance float32 `json:"distance,omitempty"` // The gear's unique identifier. ID string `json:"id,omitempty"` // The gear's name. Name string `json:"name,omitempty"` // Whether this gear's is the owner's default one. Primary bool `json:"primary,omitempty"` // Resource state, indicates level of detail. Possible values: 2 -> "summary", 3 -> "detail" ResourceState int64 `json:"resource_state,omitempty"` }
SummaryGear summary gear
swagger:model summaryGear
func (*SummaryGear) ContextValidate ¶
ContextValidate validates this summary gear based on context it is used
func (*SummaryGear) MarshalBinary ¶
func (m *SummaryGear) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SummaryGear) UnmarshalBinary ¶
func (m *SummaryGear) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SummaryPRSegmentEffort ¶
type SummaryPRSegmentEffort struct { // Number of efforts by the authenticated athlete on this segment. EffortCount int64 `json:"effort_count,omitempty"` // The unique identifier of the activity related to the PR effort. PrActivityID int64 `json:"pr_activity_id,omitempty"` // The time at which the PR effort was started. // Format: date-time PrDate strfmt.DateTime `json:"pr_date,omitempty"` // The elapsed time ot the PR effort. PrElapsedTime int64 `json:"pr_elapsed_time,omitempty"` }
SummaryPRSegmentEffort summary p r segment effort
swagger:model summaryPRSegmentEffort
func (*SummaryPRSegmentEffort) ContextValidate ¶
func (m *SummaryPRSegmentEffort) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this summary p r segment effort based on context it is used
func (*SummaryPRSegmentEffort) MarshalBinary ¶
func (m *SummaryPRSegmentEffort) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SummaryPRSegmentEffort) UnmarshalBinary ¶
func (m *SummaryPRSegmentEffort) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SummarySegment ¶
type SummarySegment struct { // activity type // Enum: [Ride Run] ActivityType string `json:"activity_type,omitempty"` // athlete pr effort AthletePrEffort *SummaryPRSegmentEffort `json:"athlete_pr_effort,omitempty"` // athlete segment stats AthleteSegmentStats *SummarySegmentEffort `json:"athlete_segment_stats,omitempty"` // The segment's average grade, in percents AverageGrade float32 `json:"average_grade,omitempty"` // The segments's city. City string `json:"city,omitempty"` // The category of the climb [0, 5]. Higher is harder ie. 5 is Hors catégorie, 0 is uncategorized in climb_category. ClimbCategory int64 `json:"climb_category,omitempty"` // The segment's country. Country string `json:"country,omitempty"` // The segment's distance, in meters Distance float32 `json:"distance,omitempty"` // The segments's highest elevation, in meters ElevationHigh float32 `json:"elevation_high,omitempty"` // The segments's lowest elevation, in meters ElevationLow float32 `json:"elevation_low,omitempty"` // end latlng EndLatlng LatLng `json:"end_latlng,omitempty"` // The unique identifier of this segment ID int64 `json:"id,omitempty"` // The segments's maximum grade, in percents MaximumGrade float32 `json:"maximum_grade,omitempty"` // The name of this segment Name string `json:"name,omitempty"` // Whether this segment is private. Private bool `json:"private,omitempty"` // start latlng StartLatlng LatLng `json:"start_latlng,omitempty"` // The segments's state or geographical region. State string `json:"state,omitempty"` }
SummarySegment summary segment
swagger:model summarySegment
func (*SummarySegment) ContextValidate ¶
ContextValidate validate this summary segment based on the context it is used
func (*SummarySegment) MarshalBinary ¶
func (m *SummarySegment) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SummarySegment) UnmarshalBinary ¶
func (m *SummarySegment) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SummarySegmentEffort ¶
type SummarySegmentEffort struct { // The unique identifier of the activity related to this effort ActivityID int64 `json:"activity_id,omitempty"` // The effort's distance in meters Distance float32 `json:"distance,omitempty"` // The effort's elapsed time ElapsedTime int64 `json:"elapsed_time,omitempty"` // The unique identifier of this effort ID int64 `json:"id,omitempty"` // Whether this effort is the current best on the leaderboard IsKom bool `json:"is_kom,omitempty"` // The time at which the effort was started. // Format: date-time StartDate strfmt.DateTime `json:"start_date,omitempty"` // The time at which the effort was started in the local timezone. // Format: date-time StartDateLocal strfmt.DateTime `json:"start_date_local,omitempty"` }
SummarySegmentEffort summary segment effort
swagger:model summarySegmentEffort
func (*SummarySegmentEffort) ContextValidate ¶
ContextValidate validates this summary segment effort based on context it is used
func (*SummarySegmentEffort) MarshalBinary ¶
func (m *SummarySegmentEffort) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SummarySegmentEffort) UnmarshalBinary ¶
func (m *SummarySegmentEffort) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TemperatureStream ¶
type TemperatureStream struct { BaseStream // The sequence of temperature values for this stream, in celsius degrees Data []int64 `json:"data"` }
TemperatureStream temperature stream
swagger:model temperatureStream
func (*TemperatureStream) ContextValidate ¶
ContextValidate validate this temperature stream based on the context it is used
func (*TemperatureStream) MarshalBinary ¶
func (m *TemperatureStream) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (TemperatureStream) MarshalJSON ¶
func (m TemperatureStream) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*TemperatureStream) UnmarshalBinary ¶
func (m *TemperatureStream) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*TemperatureStream) UnmarshalJSON ¶
func (m *TemperatureStream) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type TimeStream ¶
type TimeStream struct { BaseStream // The sequence of time values for this stream, in seconds Data []int64 `json:"data"` }
TimeStream time stream
swagger:model timeStream
func (*TimeStream) ContextValidate ¶
ContextValidate validate this time stream based on the context it is used
func (*TimeStream) MarshalBinary ¶
func (m *TimeStream) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (TimeStream) MarshalJSON ¶
func (m TimeStream) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*TimeStream) UnmarshalBinary ¶
func (m *TimeStream) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*TimeStream) UnmarshalJSON ¶
func (m *TimeStream) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type TimedZoneDistribution ¶
type TimedZoneDistribution []*TimedZoneRange
TimedZoneDistribution Stores the exclusive ranges representing zones and the time spent in each.
swagger:model timedZoneDistribution
func (TimedZoneDistribution) ContextValidate ¶
ContextValidate validate this timed zone distribution based on the context it is used
type TimedZoneRange ¶
type TimedZoneRange struct { ZoneRange // The number of seconds spent in this zone Time int64 `json:"time,omitempty"` }
TimedZoneRange A union type representing the time spent in a given zone.
swagger:model timedZoneRange
func (*TimedZoneRange) ContextValidate ¶
ContextValidate validate this timed zone range based on the context it is used
func (*TimedZoneRange) MarshalBinary ¶
func (m *TimedZoneRange) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (TimedZoneRange) MarshalJSON ¶
func (m TimedZoneRange) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*TimedZoneRange) UnmarshalBinary ¶
func (m *TimedZoneRange) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*TimedZoneRange) UnmarshalJSON ¶
func (m *TimedZoneRange) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type UpdatableActivity ¶
type UpdatableActivity struct { // Whether this activity is a commute Commute bool `json:"commute,omitempty"` // The description of the activity Description string `json:"description,omitempty"` // Identifier for the gear associated with the activity. ‘none’ clears gear from activity GearID string `json:"gear_id,omitempty"` // Whether this activity is muted HideFromHome bool `json:"hide_from_home,omitempty"` // The name of the activity Name string `json:"name,omitempty"` // sport type SportType SportType `json:"sport_type,omitempty"` // Whether this activity was recorded on a training machine Trainer bool `json:"trainer,omitempty"` // type Type ActivityType `json:"type,omitempty"` }
UpdatableActivity updatable activity
swagger:model updatableActivity
func (*UpdatableActivity) ContextValidate ¶
ContextValidate validate this updatable activity based on the context it is used
func (*UpdatableActivity) MarshalBinary ¶
func (m *UpdatableActivity) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdatableActivity) UnmarshalBinary ¶
func (m *UpdatableActivity) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Upload ¶
type Upload struct { // The identifier of the activity this upload resulted into ActivityID int64 `json:"activity_id,omitempty"` // The error associated with this upload Error string `json:"error,omitempty"` // The external identifier of the upload ExternalID string `json:"external_id,omitempty"` // The unique identifier of the upload ID int64 `json:"id,omitempty"` // The unique identifier of the upload in string format IDStr string `json:"id_str,omitempty"` // The status of this upload Status string `json:"status,omitempty"` }
Upload upload
swagger:model upload
func (*Upload) ContextValidate ¶
ContextValidate validates this upload based on context it is used
func (*Upload) MarshalBinary ¶
MarshalBinary interface implementation
func (*Upload) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ZoneRange ¶
type ZoneRange struct { // The maximum value in the range. Max int64 `json:"max,omitempty"` // The minimum value in the range. Min int64 `json:"min,omitempty"` }
ZoneRange zone range
swagger:model zoneRange
func (*ZoneRange) ContextValidate ¶
ContextValidate validates this zone range based on context it is used
func (*ZoneRange) MarshalBinary ¶
MarshalBinary interface implementation
func (*ZoneRange) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ZoneRanges ¶
type ZoneRanges []*ZoneRange
ZoneRanges zone ranges
swagger:model zoneRanges
func (ZoneRanges) ContextValidate ¶
ContextValidate validate this zone ranges based on the context it is used
type Zones ¶
type Zones struct { // heart rate HeartRate *HeartRateZoneRanges `json:"heart_rate,omitempty"` // power Power *PowerZoneRanges `json:"power,omitempty"` }
Zones zones
swagger:model zones
func (*Zones) ContextValidate ¶
ContextValidate validate this zones based on the context it is used
func (*Zones) MarshalBinary ¶
MarshalBinary interface implementation
func (*Zones) UnmarshalBinary ¶
UnmarshalBinary interface implementation
Source Files
¶
- activity_stats.go
- activity_total.go
- activity_type.go
- activity_zone.go
- altitude_stream.go
- base_stream.go
- cadence_stream.go
- club_activity.go
- club_athlete.go
- comment.go
- detailed_activity.go
- detailed_athlete.go
- detailed_club.go
- detailed_gear.go
- detailed_segment.go
- detailed_segment_effort.go
- distance_stream.go
- error.go
- explorer_response.go
- explorer_segment.go
- fault.go
- heart_rate_zone_ranges.go
- heartrate_stream.go
- lap.go
- lat_lng.go
- lat_lng_stream.go
- meta_activity.go
- meta_athlete.go
- meta_club.go
- moving_stream.go
- photos_summary.go
- polyline_map.go
- power_stream.go
- power_zone_ranges.go
- route.go
- smooth_grade_stream.go
- smooth_velocity_stream.go
- split.go
- sport_type.go
- stream_set.go
- summary_activity.go
- summary_athlete.go
- summary_club.go
- summary_gear.go
- summary_p_r_segment_effort.go
- summary_segment.go
- summary_segment_effort.go
- temperature_stream.go
- time_stream.go
- timed_zone_distribution.go
- timed_zone_range.go
- updatable_activity.go
- upload.go
- zone_range.go
- zone_ranges.go
- zones.go