aqb

package
v0.0.0-...-fdedbb8 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: MIT Imports: 10 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 {
	*http.Client
	// contains filtered or unexported fields
}

Client interact with aqb server

func NewClient

func NewClient(ctx context.Context) (Client, error)

NewClient build new Client

func (*Client) CheckSession

func (c *Client) CheckSession() (bool, error)

CheckSession returns

func (*Client) DownloadPlayShare

func (c *Client) DownloadPlayShare(ps *PlayShare, w io.Writer) error

DownloadPlayShare download PlayShare to writer

func (*Client) GetSession

func (c *Client) GetSession() (io.Reader, error)

GetSession returns io.Reader that includes information to recovery session. Internally returns value of aqblog= cookie currently. That cookie is the only persistent cookie returned from server.

func (*Client) ListPlayShare

func (c *Client) ListPlayShare() ([]*PlayShare, error)

ListPlayShare lists all playshare

func (*Client) Login

func (c *Client) Login(username, password string) error

Login issues session

func (*Client) RestoreSession

func (c *Client) RestoreSession(r io.Reader) error

RestoreSession recovery session from GetSession return value.

type PlayShare

type PlayShare struct {
	GameID       string `json:"game_id"`
	GameName     string `json:"game_name"`
	FilePath     string `json:"file_path"`
	LastPlayDate uint   `json:"last_play_date"`
	ImageWidth   uint   `json:"image_width"`
	ImageHeight  uint   `json:"image_height"`
}

PlayShare represent play share files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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