Documentation ¶
Overview ¶
Package server hosts the HealthKit data on http port
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSessionHandler ¶
NewSessionHandler creates a new sessionHandler
Types ¶
type GoogleUserInfo ¶
type GoogleUserInfo struct { Authenticated bool // true if user is Authenticated. Set locally ID string `json:"id,omitempty"` Email string `json:"email,omitempty"` FamilyName string `json:"family_name,omitempty"` GivenName string `json:"given_name,omitempty"` Gender string `json:"gender,omitempty"` Link string `json:"link,omitempty"` Locale string `json:"locale,omitempty"` Name string `json:"name,omitempty"` ProfileURL string `json:"picture,omitempty"` VerifiedEmail bool `json:"verified_email,omitempty"` }
GoogleUserInfo user data for UserInfo API call https://any-api.com/googleapis_com/oauth2/docs/userinfo/oauth2_userinfo_get
type NameActiveHREF ¶
NameActiveHREF a tuple that saves name and is a section is active.
type PageHeader ¶
type PageHeader struct { Title string NP NavPrimary NS []NameActiveHREF // Nav secondary }
PageHeader defines the Title of a page and Name of Active Primary Nav page. One of "records", "activity" or "summary"
type RecordsDataCategory ¶
type RecordsDataCategory string
type RecordsPage ¶
type RecordsPage struct { PageHeader *export.Me Records export.NameTypeKeyCounts Devices export.KeyCounts Types export.KeyCounts }
RecordsPage data for Page records
Click to show internal directories.
Click to hide internal directories.