plugin

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginDir                = ".onstatic"
	PluginExportVariableName = "EntryPoint"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Register() Handlers
}

type Endpoint

type Endpoint string

type EntryPoint

type EntryPoint func(*zap.Logger) API

type Handler

type Handler func(res http.ResponseWriter, req *http.Request)

type Handlers

type Handlers map[Endpoint]Handler

Jump to

Keyboard shortcuts

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