Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SectionMux ¶
type SectionMux struct {
// contains filtered or unexported fields
}
SectionMux serves as a way to map webfs to sub domains
func NewSectionMux ¶
func NewSectionMux(fsmap webfs.FsMap) SectionMux
NewSectionMux initializes a new SectionMux
func (SectionMux) Lookup ¶
func (sm SectionMux) Lookup(host string) webfs.Webfs
Lookup checks stored list of webfs before attempting to create a new one
func (SectionMux) Parse ¶
func (sm SectionMux) Parse(path string) (webfs.Webfs, error)
Parse adds webfs from directory
func (SectionMux) ServeHTTP ¶
func (sm SectionMux) ServeHTTP(w http.ResponseWriter, r *http.Request)
Maps request to file system and serves content
Click to show internal directories.
Click to hide internal directories.