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 {
// Initialize this API
Initialize(context.Context)
// Start this API handling
Stop(context.Context)
// Handlers returns it for this API
Handlers() Handlers
}
API is main structure of this plugin
type EntryPoint ¶
EntryPoint is plugin entry point. First, call this function.
type Handlers ¶
type Handlers map[Endpoint]http.HandlerFunc
Handlers is Endpoint-HandlerFunc collection
Click to show internal directories.
Click to hide internal directories.