upload

package
v0.0.0-...-a52e8f6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PublicFileField = "public"
	EndpointFormat  = "%s/v1/upload"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Upload(fileName string, contents []byte) (UploadedFile, apperrors.AppError)
}

func NewClient

func NewClient(uploadServiceUrl string) Client

type Response

type Response struct {
	UploadedFiles []UploadedFile
	Errors        []ResponseError
}

type ResponseError

type ResponseError struct {
	Message  string
	FileName string
}

type UploadedFile

type UploadedFile struct {
	FileName   string
	RemotePath string
	Bucket     string
	Size       int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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