package
0.12.2
Repository: https://github.com/tidepool-org/go-common.git
Documentation: pkg.go.dev

# Functions

Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewGetSummaryRequest generates requests for GetSummary.
ParseGetSummaryResponse parses an HTTP response from a GetSummaryWithResponse call.
WithBaseURL overrides the baseURL.
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client.
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request.

# Constants

No description provided by the author

# Structs

BGMBucketData Series of counters which represent one hour of a users data.
BGMPeriod Summary of a specific BGM time period (currently: 1d, 7d, 14d, 30d).
BGMStats A summary of a users recent BGM glucose values.
Bucket bucket containing an hour of bgm or cgm aggregations.
Bucket_Data defines model for Bucket.Data.
CGMBucketData Series of counters which represent one hour of a users data.
CGMPeriod Summary of a specific CGM time period (currently: 1d, 7d, 14d, 30d).
CGMStats A summary of a users recent CGM glucose values.
Client which conforms to the OpenAPI3 specification for this service.
ClientWithResponses builds on ClientInterface to offer response payloads.
Config Summary schema version and calculation configuration.
ContinuousBucketData Series of counters which represent one hour of a users data.
ContinuousPeriod Summary of a specific continuous upload time period (currently: 1d, 7d, 14d, 30d).
ContinuousStats A summary of a users recent CGM glucose values.
Dates dates tracked for summary calculation.
No description provided by the author
Summary A summary of a users recent data.
Summary_Stats defines model for Summary.Stats.

# Interfaces

The interface specification for the client above.
ClientWithResponsesInterface is the interface specification for the client with responses above.
Doer performs HTTP requests.

# Type aliases

BGMPeriods A map to each supported BGM summary period.
CGMPeriods A map to each supported CGM summary period.
ClientOption allows setting custom parameters during construction.
ContinuousPeriods A map to each supported CGM summary period.
RequestEditorFn is the function signature for the RequestEditor callback function.
SummaryType Field which contains a summary type string.
SummaryTypeSchema Field which contains a summary type string.
TidepoolUserId String representation of a Tidepool User ID.
UserId String representation of a Tidepool User ID.