Documentation ¶
Index ¶
Constants ¶
View Source
const AppName = "http_server"
AppName is the application name
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthMiddleware ¶
BasicAuthMiddleware holds the informations to build a basic authentication middleware
func NewBasicAuthMiddleware ¶
func NewBasicAuthMiddleware(username, password string) *BasicAuthMiddleware
NewBasicAuthMiddleware returns a new basic auth middleware
func (*BasicAuthMiddleware) ServeHTTP ¶
func (ba *BasicAuthMiddleware) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
ServeHTTP implements the negroni middleware interface
type Season ¶
type Season struct { *polochon.ShowSeason Episodes map[int]*index.Episode `json:"episodes"` }
Season represents the season output of the server
Click to show internal directories.
Click to hide internal directories.