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