disk

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() serving.Serving

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

Types

type Disk added in v1.17.0

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

Disk describes a disk access serving

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

Jump to

Keyboard shortcuts

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