fileserver

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApp

func NewApp(o Options) *fiber.App

NewApp creates a Fiber application using the provided options.

Types

type Options

type Options struct {
	Dir       string
	Path      string
	Index     string
	Cache     time.Duration
	MaxAge    int
	Logger    bool
	Cors      bool
	Health    bool
	Browse    bool
	Download  bool
	Compress  bool
	ByteRange bool
}

Options holds the settings for the file server.

Jump to

Keyboard shortcuts

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