ccclient

package
v0.0.0-...-0788a77 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JOB_QUEUED   = "queued"
	JOB_RUNNING  = "running"
	JOB_FAILED   = "failed"
	JOB_FINISHED = "finished"
)
View Source
const FormField = "file"
View Source
const MAX_UPLOAD_RETRIES = 3

Variables

This section is empty.

Functions

This section is empty.

Types

type Poller

type Poller interface {
	Poll(fallbackURL *url.URL, res *http.Response, cancelChan <-chan struct{}) error
}

func NewPoller

func NewPoller(logger lager.Logger, httpClient *http.Client, pollInterval time.Duration) Poller

type Uploader

type Uploader interface {
	Upload(uploadURL *url.URL, filename string, r *http.Request, cancelChan <-chan struct{}) (*http.Response, error)
}

func NewUploader

func NewUploader(logger lager.Logger, httpClient *http.Client) Uploader

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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