web

package
Version: v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ViewCount = 0

Functions

func BasicAuth added in v0.2.1

func BasicAuth(handler http.HandlerFunc) http.HandlerFunc

BasicAuth wraps a handler requiring HTTP basic auth for it using the given username and password and the specified realm, which shouldn't contain quotes.

Most web browser display a dialog with something like:

The website says: "<realm>"

Which is really stupid so you may want to set the realm to a message rather than an actual realm.

func CacheControlWrapper

func CacheControlWrapper(h http.Handler) http.Handler

func IGLogin added in v0.3.1

func IGLogin(w http.ResponseWriter, r *http.Request)

func Serve

func Serve(conf *galleryConfig.Configuration)

Types

type AdminModel added in v0.3.1

type AdminModel struct {
	Stats  Stats
	Albums []datastore.Album
	Config map[string]interface{}
	IG     galleryConfig.InstagramConfiguration
}

type M

type M map[string]interface{}

type Stats added in v0.2.1

type Stats struct {
	Photos     int
	Albums     int
	ProcessQue int
	ViewCount  int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL