api

package
v0.0.0-...-b66b735 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const IdParamNeededLength = 16
View Source
const PageSize = 150

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func New

func New(s3Instance *s3.S3) *API

func (*API) GetImageStream

func (api *API) GetImageStream(w http.ResponseWriter, r *http.Request)

func (*API) GetSignedUploadURL

func (api *API) GetSignedUploadURL(w http.ResponseWriter, r *http.Request)

func (*API) WriteJSONErrorResponse

func (api *API) WriteJSONErrorResponse(message string, statusCode int, w http.ResponseWriter)

func (*API) WriteJSONResponse

func (api *API) WriteJSONResponse(response interface{}, w http.ResponseWriter)

Jump to

Keyboard shortcuts

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