rpc

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2017 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// APIURL is the well-known HTTP GET endpoint that retrieves description of the plugin's interfaces.
	APIURL = "/info/api.json"

	// FunctionsURL exposes the templates functions that are available via this plugin
	FunctionsURL = "/info/functions.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handshake added in v0.3.0

type Handshake []spi.InterfaceSpec

Handshake is a simple RPC object for doing handshake

func (Handshake) Implements added in v0.3.0

func (h Handshake) Implements(_ *http.Request, req *ImplementsRequest, resp *ImplementsResponse) error

Implements responds to a request for the supported plugin interfaces.

type ImplementsRequest added in v0.3.0

type ImplementsRequest struct {
}

ImplementsRequest is the rpc wrapper for the Implements method args.

type ImplementsResponse added in v0.3.0

type ImplementsResponse struct {
	APIs []spi.InterfaceSpec
}

ImplementsResponse is the rpc wrapper for the Implements return value.

type InputExample

type InputExample interface {

	// SetExampleProperties updates the parameter with example properties.
	// The request param must be a pointer
	SetExampleProperties(request interface{})
}

InputExample is the interface implemented by the rpc implementations for group, instance, and flavor to set example input using custom/ vendored data types.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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