api

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const BaseURL = "https://developer.lge.com/secure"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(token string) *Client

func (*Client) Extend

func (c *Client) Extend() (err error)

func (*Client) Query

func (c *Client) Query() (timeLeft string, err error)

type Response

type Response struct {
	Result    string `json:"result,omitempty"`
	ErrorCode string `json:"errorCode,omitempty"`
	ErrorMsg  string `json:"errorMsg,omitempty"`
}

func (Response) Error

func (b Response) Error() error

func (Response) Failed

func (b Response) Failed() bool

func (Response) ResetIsSuccessful

func (b Response) ResetIsSuccessful() bool

func (Response) Succeeded

func (b Response) Succeeded() bool

Jump to

Keyboard shortcuts

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