plugin

package
v0.0.0-...-995403b Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callable

type Callable interface {

	// String returns a string representation of the callable
	String() string

	// Call makes a call to the plugin using http method, at op (endpoint), with message and result structs
	Call(endpoint Endpoint, message, result interface{}) (raw []byte, err error)
}

Callable makes something callable in a rpc context

type Endpoint

type Endpoint interface {
	// String returns a human readable representation of what this endpoint is
	String() string
}

Endpoint models some endpoint for a plugin to deliver a message to and can get raw bytes as response, and consequently, a typed result Right now one endpoint type is avalable: plugin.util.HttpEndpoint() that works http client and servers.

type Handler

type Handler func(vars map[string]string, body io.Reader) (result interface{}, err error)

Handler is a server side handler of the plugin

Directories

Path Synopsis
flavor
instance

Jump to

Keyboard shortcuts

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