Versions in this module Expand all Collapse all v0 v0.1.0 Oct 26, 2024 Changes in this version + func Error(ctx context.Context, what interface{}, w http.ResponseWriter, text string, ...) + func Object(w http.ResponseWriter, r *http.Request, o fs.Object) + type Crumb struct + Link string + Text string + type DirEntry struct + IsDir bool + Leaf string + ModTime time.Time + Size int64 + URL string + type Directory struct + Breadcrumb []Crumb + DirRemote string + Entries []DirEntry + HTMLTemplate *template.Template + Name string + Order string + Query string + Sort string + Title string + func NewDirectory(dirRemote string, htmlTemplate *template.Template) *Directory + func (d *Directory) AddEntry(remote string, isDir bool) + func (d *Directory) AddHTMLEntry(remote string, isDir bool, size int64, modTime time.Time) + func (d *Directory) ProcessQueryParams(sortParm string, orderParm string) *Directory + func (d *Directory) Serve(w http.ResponseWriter, r *http.Request) + func (d *Directory) SetQuery(queryParams url.Values) *Directory