proxy

package
v0.0.0-...-5d35ed4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderDirectoryListing

func RenderDirectoryListing(w http.ResponseWriter, listing DirectoryListing) error

RenderDirectoryListing renders a text/template for directory listings.

Types

type DirectoryEntry

type DirectoryEntry struct {
	Name    string
	Size    int64
	ModTime *time.Time
}

DirectoryEntry is an entry within a directory.

type DirectoryListing

type DirectoryListing struct {
	Entries     []DirectoryEntry
	Prefixes    []string
	IsTruncated bool
}

DirectoryListing is a directory or prefix and all its entries.

type Options

type Options struct {
	Autoindex  *bool    `json:"autoindex,omitempty" yaml:"autoindex,omitempty"`
	IndexFiles []string `json:"index_files,omitempty" yaml:"index_files,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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