Documentation ¶
Index ¶
Constants ¶
View Source
const GcsEndpoint = "storage.googleapis.com"
GcsEndpoint specifies REST base endpoint for GCS
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Decorator ¶
Decorator allows creation of uniform middleware for the proxy
func ConstraintHandler ¶
ConstraintHandler middleware enforces limitations that the proxy currently has 1. proxy only supports GET 2. must have at least a bucket name
func LoggerHandler ¶
LoggerHandler middleware adds logging before and after the main handler is invoked
func RouteHandler ¶
func RouteHandler() Decorator
RouteHandler middleware does basic path checks. Enforces a root path
type RespWrapper ¶
type RespWrapper struct { Status int http.ResponseWriter }
RespWrapper contains response status
func (*RespWrapper) SaveStatus ¶
func (w *RespWrapper) SaveStatus(status int)
SaveStatus eases logging http status and updates status in the response header
Click to show internal directories.
Click to hide internal directories.