client

package
v0.0.0-...-d866a33 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPairingAlreadyConnected = errors.New("Pair must be called before logging in")
)

Functions

This section is empty.

Types

type Client

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

func New

func New() *Client

func (*Client) Authenticated

func (client *Client) Authenticated() bool

func (*Client) Connect

func (client *Client) Connect() error

func (*Client) IsConnected

func (client *Client) IsConnected() bool

func (*Client) Pair

func (client *Client) Pair(ctx context.Context) (chan PairingItem, error)

func (*Client) Unpair

func (client *Client) Unpair()

type PairingItem

type PairingItem struct {
	// The raw data for the qr code
	Data string

	// An error that occurred. If nil, then a value should be in Data.
	Error error

	// The remaining time that this code is valid
	Timeout time.Duration
}

Jump to

Keyboard shortcuts

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