servegcs

package
v0.0.0-...-ba396c1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: BSD-3-Clause Imports: 14 Imported by: 2

Documentation

Overview

Package servegcs implements serving a file tree from Google Cloud Storage. Files are served with headers allowing caching by Google infrastructure for up to 5 minutes.

func init() {
	http.Handle("/", servegcs.Handler("swtch.com", "swtch/www"))
	http.HandleFunc("www.swtch.com/", servegcs.RedirectHost("swtch.com"))
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(host, bucket string) http.HandlerFunc

func RedirectHost

func RedirectHost(host string) http.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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