client

package
v1.0.1-0...-32d7d0a Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithFiles

func WithFiles(testdata string) options

func WithTimes

func WithTimes(times int) options

Types

type Client

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

func New

func New(apiAddress string, timeout time.Duration, opts ...options) (*Client, error)

func (*Client) Album

func (c *Client) Album() (string, error)

func (*Client) Do

func (c *Client) Do(method string, url string, body io.ReadCloser) error

func (*Client) Health

func (c *Client) Health() error

func (*Client) Pair

func (c *Client) Pair(album string) (Pair, error)

func (*Client) Stats

func (c *Client) Stats() (int, int)

func (*Client) Status

func (c *Client) Status(album string) error

func (*Client) Top

func (c *Client) Top(album string) ([]string, error)

func (*Client) Vote

func (c *Client) Vote(album string, token1 string, token2 string) error

type Pair

type Pair struct {
	One elem
	Two elem
}

Jump to

Keyboard shortcuts

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