plugin

package module
v0.0.0-...-3236bfa Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MaxUploadFileLength = 16e3
)

Functions

func Analyze

func Analyze(rw http.ResponseWriter, r *http.Request)

Analyze looks up error for API given by r.URL.Path and responds by error message or 404 if no error found.

func Consume

func Consume(content []byte, path string)

Consume compiles handler's source code given by content and makes it accessible as an API given by path.

func Execute

func Execute(rw http.ResponseWriter, r *http.Request)

Execute looks up handler by r.URL.Path and calls the handler.

func Upload

func Upload(produce func(value, key []byte) error) http.HandlerFunc

Upload creates handler that produces uploaded content by using produce func.

Types

This section is empty.

Jump to

Keyboard shortcuts

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