route

package
v0.0.100 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileHandler

type FileHandler struct {
	Initialized bool
	FilePath    string
	Content     []byte
	Etag        string
	// contains filtered or unexported fields
}

func NewFileHandler

func NewFileHandler(filePath string) (*FileHandler, error)

func (*FileHandler) AddProcess

func (c *FileHandler) AddProcess(process func(content []byte) ([]byte, error)) *FileHandler

func (*FileHandler) Clone

func (c *FileHandler) Clone() *FileHandler

func (*FileHandler) Refresh

func (c *FileHandler) Refresh() error

func (*FileHandler) ServeHTTP

func (h *FileHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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