script

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrScriptFileNotFound = errors.New("script file not found")

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(options ...HandlerOption) *Handler

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(writer contracts.ResponseWriter, request *contracts.Request)

type HandlerOption

type HandlerOption = func(*Handler)

func WithFileSystem

func WithFileSystem(fs afero.Fs) HandlerOption

func WithLogger

func WithLogger(logger contracts.Logger) HandlerOption

func WithScript

func WithScript(script config.Script) HandlerOption

Jump to

Keyboard shortcuts

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