upload

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ItolUploader

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

func NewItolUploader

func NewItolUploader(uploadid, projectname string, annotationfiles ...string) *ItolUploader

Initialize a new itoluploader if uploadid=="", then tree will be public and deleted after 30 days

func (*ItolUploader) Upload

func (u *ItolUploader) Upload(name string, t *tree.Tree) (string, string, error)

type Uploader

type Uploader interface {
	Upload(name string, t *tree.Tree) (string, string, error) // Upload a tree with a given name to a server and returns the url to access the tree, and full server response
}

Jump to

Keyboard shortcuts

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