hangar

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UnderlayFS embed.FS

Functions

This section is empty.

Types

type DirectoryListingData

type DirectoryListingData struct {
	SiteName    string
	AppName     string
	Attribution template.HTML
	NoHeader    bool
	Banner      string
	Path        []string
	Entries     []DirectoryListingEntry
	Readme      string
}

type DirectoryListingEntry

type DirectoryListingEntry struct {
	AbsolutePath string
	Name         string
	Icon         string
}

type Hangar

type Hangar struct {
	BaseFS      fs.FS
	Template    *template.Template
	SiteName    string
	NoHeader    bool
	Banner      string
	AppName     string
	Attribution template.HTML
}

func New

func New(base fs.FS) (*Hangar, error)

func (*Hangar) ServeHTTP

func (hangar *Hangar) ServeHTTP(res http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL