processor

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoMatchFound  = errors.New("no match found for request")
	ErrInvalidConfig = errors.New("invalid config")
)

Functions

This section is empty.

Types

type MagicHeader

type MagicHeader struct {
	Name         string
	SourceFolder string
	// contains filtered or unexported fields
}

type Processor

type Processor interface {
	Process(w http.ResponseWriter, r *http.Request)
}

func NewFromConfig

func NewFromConfig(c config.Config) (Processor, error)

NewFromConfig creates a new RequestProcessor from a Config struct

Jump to

Keyboard shortcuts

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