rafter

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client defines upload service actions

func NewClient

func NewClient(uploadServiceURL string, log logrus.FieldLogger) Client

NewClient creates a new client for upload service

type Response

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

Response represents response from upload service

type ResponseError

type ResponseError struct {
	Message  string
	FileName string
}

ResponseError represents error response from upload service

type UploadedFile

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

UploadedFile contains data about uploaded file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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