fileserver

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: ISC Imports: 9 Imported by: 0

Documentation

Overview

Package fileserver implements a gemini handler function to serve files with optional auto indexing for directory listings.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDirWithoutIndexFile = errors.New("path without index.gmi not allowed")
	ErrUnsupportedFileType = errors.New("disabled/unsupported file type")
)

Functions

func Serve

func Serve(root string, autoindex bool) func(w gemini.ResponseWriter, r *gemini.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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