client

package
v0.0.0-...-4b954a8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2018 License: MIT Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPINInvalid = errors.New("PIN invalid")

Functions

This section is empty.

Types

type Client

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

func New

func New(l log.Logger, address *url.URL, token auth.Token) Client

func NewWithPub

func NewWithPub(l log.Logger, address, pub *url.URL, token auth.Token) Client

func (Client) Advance

func (c Client) Advance() error

func (Client) CreateTicket

func (c Client) CreateTicket() (model.ID, model.PIN, error)

func (Client) GetCoverURL

func (c Client) GetCoverURL(source string) string

func (Client) GetQueue

func (c Client) GetQueue() (model.Queue, error)

func (Client) GetSong

func (c Client) GetSong(source string) (model.Song, error)

func (Client) GetSongs

func (c Client) GetSongs() ([]model.Song, error)

func (Client) GetState

func (c Client) GetState() (model.State, error)

func (Client) GetTicket

func (c Client) GetTicket(id model.ID) (model.Ticket, error)

func (Client) GetTickets

func (c Client) GetTickets() ([]model.Ticket, error)

func (Client) GoBack

func (c Client) GoBack() error

func (Client) SetNames

func (c Client) SetNames(id model.ID, pin model.PIN, names []string) error

func (Client) SetState

func (c Client) SetState(state model.State) error

func (Client) TogglePause

func (c Client) TogglePause() error

Jump to

Keyboard shortcuts

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