upload

package
Version: v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: GPL-2.0 Imports: 11 Imported by: 1

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)

func (*ItolUploader) UploadNewick added in v0.1.12

func (u *ItolUploader) UploadNewick(name string, newick string) (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
	UploadNewick(name string, newick string) (string, string, error) // Upload a newick tree with a given name to a server and returns the url to access the tree, and full server response
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL