ports

package
v0.0.0-...-bf9f964 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CWD

type CWD fs.FS

type RequestHandler

type RequestHandler interface {
	Handle(writer http.ResponseWriter, ir *domain.IncomingRequest) (handled bool)
}

type RequestMatcher

type RequestMatcher interface {
	Matches(req *domain.IncomingRequest) bool
}

type RequestMatcherFunc

type RequestMatcherFunc func(req *domain.IncomingRequest) bool

func (RequestMatcherFunc) Matches

type ResponseProvider

type ResponseProvider interface {
	Apply(writer http.ResponseWriter)
}

type ResponseProviderFunc

type ResponseProviderFunc func(writer http.ResponseWriter)

func (ResponseProviderFunc) Apply

func (f ResponseProviderFunc) Apply(writer http.ResponseWriter)

type SpecParser

type SpecParser interface {
	Handler(ctx context.Context) (http.Handler, error)
}

Jump to

Keyboard shortcuts

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