download

package
v0.1.10-beta Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2017 License: GPL-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	IMGFORMAT_SVG     = 0
	IMGFORMAT_PNG     = 1
	IMGFORMAT_EPS     = 2
	IMGFORMAT_PDF     = 3
	IMGFORMAT_UNKNOWN = 4
)

Variables

This section is empty.

Functions

func Format

func Format(format string) int

func StrFormat

func StrFormat(format int) string

Types

type ImageDownloader

type ImageDownloader interface {
	Download(id string) ([]byte, error) // Down a tree image from a server
}

type ItolImageDownloader

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

func NewItolImageDownloader

func NewItolImageDownloader(config map[string]string) *ItolImageDownloader

func (*ItolImageDownloader) Download

func (d *ItolImageDownloader) Download(id string, format int) ([]byte, error)

Down a tree image from ITOL

Jump to

Keyboard shortcuts

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