Documentation ¶
Overview ¶
Package fitbit2gcal is a generated GoMock package.
Package fitbit2gcal is a generated GoMock package.
Package fitbit2gcal is a generated GoMock package.
Index ¶
- type Activity
- type ActivityCalories
- type ActivityData
- type ActivityGoals
- type ActivityHeartRateZone
- type ActivityLevel
- type ActivitySummary
- type FitbitClient
- type FitbitConfig
- type GCalClient
- type GCalConfig
- type MockFitbitClient
- type MockFitbitClientMockRecorder
- type MockGCalClient
- type MockGCalClientMockRecorder
- type MockService
- type MockServiceMockRecorder
- type Schedule
- type Service
- type Sleep
- type SleepData
- type SleepLevel
- type SleepLevels
- type SleepLevelsDatapoint
- type SleepLevelsSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct { Activities []ActivityData `json:"activities"` ActivityGoals ActivityGoals `json:"goals"` ActivitySummary ActivitySummary `json:"summary"` }
type ActivityCalories ¶
type ActivityData ¶
type ActivityData struct { ActivityID int `json:"activityId"` ActiveDuration int `json:"activeDuration"` ActivityLevel []ActivityLevel `json:"activityLevel"` ActivityName string `json:"activityName"` ActivityTypeID int `json:"activityTypeId"` Calories int `json:"calories"` Duration int `json:"duration"` ElevationGain int `json:"elevationGain"` HasGPS bool `json:"hasGps"` LastModified string `json:"lastModified"` LogID int `json:"logId"` LogType string `json:"logType"` OriginalDuration int `json:"originalDuration"` OriginalStartTime string `json:"originakStartTime"` StartTime string `json:"startTime"` Steps int `json:"steps"` }
type ActivityGoals ¶
type ActivityHeartRateZone ¶
type ActivityLevel ¶
type ActivitySummary ¶
type ActivitySummary struct { ActivityLevels []ActivityLevel `json:"activityLevels"` Calories ActivityCalories `json:"calories"` Distance float32 `json:"distance"` Elevation float32 `json:"elevation"` Floors int `json:"floors"` HeartRateZones []ActivityHeartRateZone `json:"heartRateZones"` Steps int `json:"steps"` }
type FitbitClient ¶
type FitbitConfig ¶
type GCalClient ¶
type GCalConfig ¶
type MockFitbitClient ¶
type MockFitbitClient struct {
// contains filtered or unexported fields
}
MockFitbitClient is a mock of FitbitClient interface
func NewMockFitbitClient ¶
func NewMockFitbitClient(ctrl *gomock.Controller) *MockFitbitClient
NewMockFitbitClient creates a new mock instance
func (*MockFitbitClient) EXPECT ¶
func (m *MockFitbitClient) EXPECT() *MockFitbitClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFitbitClient) GetActivityData ¶
func (m *MockFitbitClient) GetActivityData(dateStr string) (*Activity, error)
GetActivityData mocks base method
func (*MockFitbitClient) GetSleepData ¶
func (m *MockFitbitClient) GetSleepData(dateStr string) (*Sleep, error)
GetSleepData mocks base method
type MockFitbitClientMockRecorder ¶
type MockFitbitClientMockRecorder struct {
// contains filtered or unexported fields
}
MockFitbitClientMockRecorder is the mock recorder for MockFitbitClient
func (*MockFitbitClientMockRecorder) GetActivityData ¶
func (mr *MockFitbitClientMockRecorder) GetActivityData(dateStr interface{}) *gomock.Call
GetActivityData indicates an expected call of GetActivityData
func (*MockFitbitClientMockRecorder) GetSleepData ¶
func (mr *MockFitbitClientMockRecorder) GetSleepData(dateStr interface{}) *gomock.Call
GetSleepData indicates an expected call of GetSleepData
type MockGCalClient ¶
type MockGCalClient struct {
// contains filtered or unexported fields
}
MockGCalClient is a mock of GCalClient interface
func NewMockGCalClient ¶
func NewMockGCalClient(ctrl *gomock.Controller) *MockGCalClient
NewMockGCalClient creates a new mock instance
func (*MockGCalClient) EXPECT ¶
func (m *MockGCalClient) EXPECT() *MockGCalClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockGCalClient) InsertEvent ¶
func (m *MockGCalClient) InsertEvent(event *v3.Event, dataType string) error
InsertEvent mocks base method
type MockGCalClientMockRecorder ¶
type MockGCalClientMockRecorder struct {
// contains filtered or unexported fields
}
MockGCalClientMockRecorder is the mock recorder for MockGCalClient
func (*MockGCalClientMockRecorder) InsertEvent ¶
func (mr *MockGCalClientMockRecorder) InsertEvent(event, dataType interface{}) *gomock.Call
InsertEvent indicates an expected call of InsertEvent
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockService) Fitbit2GCal ¶
func (m *MockService) Fitbit2GCal(fromDate, toDate time.Time) error
Fitbit2GCal mocks base method
func (*MockService) Fitbit2GCalToday ¶
func (m *MockService) Fitbit2GCalToday() error
Fitbit2GCalToday mocks base method
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService
func (*MockServiceMockRecorder) Fitbit2GCal ¶
func (mr *MockServiceMockRecorder) Fitbit2GCal(fromDate, toDate interface{}) *gomock.Call
Fitbit2GCal indicates an expected call of Fitbit2GCal
func (*MockServiceMockRecorder) Fitbit2GCalToday ¶
func (mr *MockServiceMockRecorder) Fitbit2GCalToday() *gomock.Call
Fitbit2GCalToday indicates an expected call of Fitbit2GCalToday
type Service ¶
func NewService ¶
func NewService(fbc FitbitClient, gc GCalClient) Service
type SleepData ¶
type SleepData struct { DateOfSleep string `json:"dateOfSleep"` Duration int `json:"duration"` Efficiency int `json:"efficiency"` IsMainSleep bool `json:"isMainSleep"` Levels SleepLevels `json:"levels"` LogID int `json:"logId"` MinutesAfterWakeup int `json:"minutesAfterWakeup"` MinutesAsleep int `json:"minutesAsleep"` MinutesAwake int `json:"minutesAwake"` MinutesToFallAsleep int `json:"minutesToFallAsleep"` StartTime string `json:"startTime"` TimeInBed int `json:"timeInBed"` Type string `json:"type"` }
type SleepLevel ¶
type SleepLevels ¶
type SleepLevels struct { Summary SleepLevelsSummary `json:"summary"` Data []SleepLevelsDatapoint `json:"data"` ShortData []SleepLevelsDatapoint `json:"shortData"` }
type SleepLevelsDatapoint ¶
type SleepLevelsSummary ¶
type SleepLevelsSummary struct { Deep SleepLevel `json:"deep"` Light SleepLevel `json:"light"` Rem SleepLevel `json:"rem"` Wake SleepLevel `json:"wake"` }