api

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

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

Go to latest
Published: Feb 20, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiEndpoint = "http://127.0.0.1:8000/"
	UDPEndpoint = "127.0.0.1:4242"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	SessionKey string
}

func New

func New(SessionKey string) (c Api)

func (*Api) DownloadClientFileActions

func (c *Api) DownloadClientFileActions(lastId int64) (
	clientFileActionsResponse structs.ClientFileActionsResponse, err error)

func (*Api) DownloadFileFromServer

func (c *Api) DownloadFileFromServer(
	hash string) (s3_url string, err error)

func (*Api) SendFileActionsToServer

func (c *Api) SendFileActionsToServer(
	fileActions []structs.FileAction) (
	filesToUpload []string, err error)

func (*Api) UploadFileToServer

func (c *Api) UploadFileToServer(fileBody []byte) (err error)

Jump to

Keyboard shortcuts

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