txqrtester

package
v0.0.0-...-d92929c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	*txqr.Decoder
	// contains filtered or unexported fields
}

Connector represents a connection to the txqr-tester app via websockets.

func NewConnector

func NewConnector() *Connector

func (*Connector) Close

func (c *Connector) Close() error

Close closes underlying WebSocket connection.

func (*Connector) Connect

func (c *Connector) Connect(address string) error

Connect attempts to establish connection to the WS server.

func (*Connector) SendResult

func (c *Connector) SendResult(duration int64) error

SendResult sends scanning result in milliseconds.

func (*Connector) StartNext

func (c *Connector) StartNext() error

StartNext notifies txqr-tester that app is ready to scan next animated QR.

Jump to

Keyboard shortcuts

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