Versions in this module Expand all Collapse all v0 v0.1.0 Aug 6, 2026 Changes in this version + const BaseURLOutsideUS + const BaseURLUS + var ErrAuthenticationFailed = errors.New("dexcomshare: authentication failed") + var ErrInvalidMaxCount = errors.New("dexcomshare: max count must be between 1 and 288") + var ErrInvalidMinutes = errors.New("dexcomshare: minutes must be between 1 and 1440") + var ErrLoginFailed = errors.New("dexcomshare: login failed") + var ErrReadGlucoseFailed = errors.New("dexcomshare: read glucose failed") + type APIError struct + Code string + Message string + StatusCode int + func (e *APIError) Error() string + type Client struct + func NewClient(ctx context.Context, username, password string, options ...Option) (*Client, error) + func (c *Client) ReadGlucose(ctx context.Context, minutes, maxCount int) ([]GlucoseEntry, error) + type GlucoseEntry struct + DT Time + ST Time + Trend Trend + Value int + WT Time + func (e GlucoseEntry) MmolL() float64 + type Option func(*Client) + func WithBaseURL(baseURL string) Option + func WithHTTPClient(httpClient *http.Client) Option + type Time struct + func (t *Time) UnmarshalJSON(data []byte) error + func (t Time) MarshalJSON() ([]byte, error) + type Trend string + const TrendDoubleDown + const TrendDoubleUp + const TrendFlat + const TrendFortyFiveDown + const TrendFortyFiveUp + const TrendNone + const TrendNotComputable + const TrendRateOutOfRange + const TrendSingleDown + const TrendSingleUp + func (t Trend) Arrow() string + func (t Trend) Description() string + func (t Trend) Known() bool