Versions in this module Expand all Collapse all v0 v0.0.5 Jun 29, 2021 Changes in this version + func GetEndPointsURI(client *http.Client) (string, error) + func GetToken(tokenFile string, config *oauth2.Config) (*oauth2.Token, error) + func LoadToken(fname string) (*oauth2.Token, error) + func NewOAuthConfig(client, secret string) *oauth2.Config + func SaveToken(fname string, token *oauth2.Token) error + type Attribute struct + Description string + Name string + Value float64 + type Auth struct + func NewAuth(port int, config *oauth2.Config) (*Auth, error) + func (g *Auth) FetchOAuthToken() (*oauth2.Token, error) + type Sensor struct + Attributes []Attribute + DisplayName string + ID string + Name string + func GetSensors(client *http.Client, endpoint string) ([]Sensor, error)