gcs

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCS

type GCS struct {
	Client   *storage.Client
	Bucket   string
	BasePath string
	Fallback http.Handler
}

GCS proxies request to google cloud storage

func New

func New(client *storage.Client, bucket string, basePath string) *GCS

New creates new gcs backend

func (GCS) ServeHandler

func (m GCS) ServeHandler(h http.Handler) http.Handler

ServeHandler implements middleware interface

Jump to

Keyboard shortcuts

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