watttime

package
v0.0.0-...-5a60d54 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Username string
	Password string
	BA       string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(username, password, ba string) *Client

func (*Client) Index

func (c *Client) Index() (int, error)

func (*Client) Login

func (c *Client) Login() error

type IndexResponse

type IndexResponse struct {
	BA        string `json:"ba,omitempty"`
	Freq      string `json:"freq,omitempty"`
	Percent   string `json:"percent,omitempty"`
	PointTime string `json:"point_time,omitempty"`
}

type LoginResponse

type LoginResponse struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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