gcshandler

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 7 Imported by: 0

README

gcshandler

Build Status codecov 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
})))

License

MIT

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