Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultUserHeader = "X-Forwarded-User" DefaultGroupHeader = "X-Forwarded-Groups" DefaultGroupHeaderDelimiter = ";" )
Default headers used to determine the currently authenticated user and their groups.
Variables ¶
This section is empty.
Functions ¶
func Content ¶
func Content(c io.ReadSeeker, filename string) http.HandlerFunc
Content serves the supplied content at the supplied path.
Types ¶
type AuthHeaders ¶
type AuthHeaders struct { User string // The authenticated user. Group string // The authenticated user's groups. GroupDelimiter string // The delimiter of the list of groups. }
AuthHeaders from which the authenticated user and their groups are extracted.
Click to show internal directories.
Click to hide internal directories.