fileserver

package
v0.0.0-...-ea72fb3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: GPL-3.0 Imports: 10 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 fs.FS) 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