client

package
v0.0.0-...-5aaae78 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 12 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 {
	// URL to connect to
	URL string
}

Client to the server

func (*Client) CompositeLeaflets

func (cl *Client) CompositeLeaflets(height int, width int, scale int, x int, y int)

CompositeLeaflets composites all the leaflets into one big image

func (*Client) Connect

func (cl *Client) Connect() error

Connect no real connection, just check if server is responsive

func (*Client) DownloadMap

func (cl *Client) DownloadMap(height int, width int, scale int, x int, y int)

DownloadMap will download all the leaflets in a rectangular region with height x width leaflets. The scale is a power of 4

func (*Client) DownloadMapAsync

func (cl *Client) DownloadMapAsync(height int, width int, scale int, x int, y int)

DownloadMapAsync will download all the leaflets asynchronously

Jump to

Keyboard shortcuts

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