disk

package
v1.51.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(vfs vfs.VFS) serving.Serving

New returns a serving instance that is capable of reading files from the VFS

Types

type Disk added in v1.17.0

type Disk struct {
	// contains filtered or unexported fields
}

Disk describes a disk access serving

func (*Disk) Reconfigure added in v1.31.0

func (s *Disk) Reconfigure(cfg *config.Config) error

Reconfigure VFS

func (*Disk) ServeFileHTTP added in v1.17.0

func (s *Disk) ServeFileHTTP(h serving.Handler) bool

ServeFileHTTP serves a file from disk and returns true. It returns false when a file could not been found.

func (*Disk) ServeNotFoundHTTP added in v1.17.0

func (s *Disk) ServeNotFoundHTTP(h serving.Handler)

ServeNotFoundHTTP tries to read a custom 404 page

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

Reader is a disk access driver

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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