Documentation ¶
Index ¶
- Constants
- func NewTaskCreate(providerSessionID string, dataSourceID string) (*task.TaskCreate, error)
- func TaskName(providerSessionID string) string
- type BySystemTime
- type Runner
- func (r *Runner) AuthClient() auth.Client
- func (r *Runner) CanRunTask(tsk *task.Task) bool
- func (r *Runner) DataClient() dataClient.Client
- func (r *Runner) DataSourceClient() dataSource.Client
- func (r *Runner) DexcomClient() dexcom.Client
- func (r *Runner) Logger() log.Logger
- func (r *Runner) Run(ctx context.Context, tsk *task.Task)
- func (r *Runner) VersionReporter() version.Reporter
- type TaskRunner
Constants ¶
View Source
const ( AvailableAfterDurationMaximum = 75 * time.Minute AvailableAfterDurationMinimum = 45 * time.Minute DataSetSize = 2000 TaskDurationMaximum = 5 * time.Minute )
View Source
const DailyDuration = 24 * time.Hour
View Source
const DailyOffsets = DailyDuration / OffsetDuration
View Source
const DataSetClientName = Type
View Source
const DataSetClientVersion = "1.0.0"
View Source
const MaximumOffsets = (14 * time.Hour) / OffsetDuration // Maximum time zone offset is +14:00
View Source
const MinimumOffsets = (-12 * time.Hour) / OffsetDuration // Minimum time zone offset is -12:00
View Source
const OffsetDuration = 30 * time.Minute // Duration between time zone offsets we scan for
View Source
const Type = "org.tidepool.oauth.dexcom.fetch"
Variables ¶
This section is empty.
Functions ¶
func NewTaskCreate ¶
func NewTaskCreate(providerSessionID string, dataSourceID string) (*task.TaskCreate, error)
Types ¶
type BySystemTime ¶
func (BySystemTime) Len ¶
func (b BySystemTime) Len() int
func (BySystemTime) Swap ¶
func (b BySystemTime) Swap(left int, right int)
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) AuthClient ¶
func (*Runner) DataClient ¶
func (r *Runner) DataClient() dataClient.Client
func (*Runner) DataSourceClient ¶ added in v1.29.0
func (r *Runner) DataSourceClient() dataSource.Client
func (*Runner) DexcomClient ¶
func (*Runner) VersionReporter ¶
type TaskRunner ¶
type TaskRunner struct { *Runner // contains filtered or unexported fields }
func NewTaskRunner ¶
func NewTaskRunner(rnnr *Runner, tsk *task.Task) (*TaskRunner, error)
Click to show internal directories.
Click to hide internal directories.