connect

package
v0.0.0-...-249cb7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(conf *config.Configuration) (*http.Client, time.Time, error)

Auth authenticates to the Tesla Energy Gateway and returns an HTTP client

func GetAll

func GetAll(conf *config.Configuration, client *http.Client) (model.Teg, error)

GetAll calls GetEndpoint for all specified endpoints

func GetEndpoint

func GetEndpoint(conf *config.Configuration, client *http.Client, endpoint string, data interface{}) error

GetEndpoint queries an individual endpoint and stores the results in the provided data structure

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL