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.
Click to show internal directories.
Click to hide internal directories.