controller

package
v0.0.0-...-1be2e0f Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2016 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func Create

func Create(
	version *version.Version,
	state *State,
	using string,
	controllers []string,
	controller func(*bytes.Buffer, *http.Request),
) *Controller

func (*Controller) Controller

func (self *Controller) Controller(
	w *bytes.Buffer,
	r *http.Request,
)

func (*Controller) GetControllers

func (self *Controller) GetControllers() []string

func (*Controller) GetState

func (self *Controller) GetState() *State

func (*Controller) GetUsing

func (self *Controller) GetUsing() string

func (*Controller) GetVersion

func (self *Controller) GetVersion() *version.Version

type State

type State struct {
	// unsafe
	Plugin *p.Plugin
	// KeyValue can be set with the flag -controller-kv
	KeyValue map[string]interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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