gcshandler

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: MIT Imports: 7 Imported by: 0

README

gcshandler

Build Status Coverage Status Go Report Card GoDoc

Example

m.Handle("/-/", http.StripPrefix("/-", gcshandler.New(gcshandler.Config{
    Client: nil, // *storage.Client
    Bucket: "acoshift-test",
    BasePath: "folder",
    CacheControl: "public, max-age=7200",
    Fallback: webstatic.New("assets"), // github.com/acoshift/webstatic
})))

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c Config) http.Handler

New creates new gcshandler

Types

type Config

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

Config is gcshandler config

Jump to

Keyboard shortcuts

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