restinspectorhandler

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RESTEntities  = map[string]*RESTEntity{}
	ReadyEntityCh chan *TransitionEntity
)

TODO: move global vars to RESTInspectorHandler struct

Functions

func ActionsOnDelete

func ActionsOnDelete(w http.ResponseWriter, r *http.Request)

@app.route(api_root + '/actions/<entity_id>/<action_uuid>', methods=['DELETE'])

func ActionsOnGet

func ActionsOnGet(w http.ResponseWriter, r *http.Request)

@app.route(api_root + '/actions/<entity_id>', methods=['GET'])

func EventsOnPost

func EventsOnPost(w http.ResponseWriter, r *http.Request)

@app.route(api_root + '/events/<entity_id>/<event_uuid>', methods=['POST'])

func RootOnGet

func RootOnGet(w http.ResponseWriter, r *http.Request)

@app.route('/', methods=['GET'])

Types

type RESTEntity

type RESTEntity struct {
	ActionsLock       sync.RWMutex
	Actions           []*Action
	HttpActionReadyCh chan bool
	Entity            TransitionEntity
}

func (*RESTEntity) WaitForAction

func (this *RESTEntity) WaitForAction() (act *Action)

type RESTInspectorHandler

type RESTInspectorHandler struct {
}

func NewRESTInspectorHanlder

func NewRESTInspectorHanlder(config *Config) *RESTInspectorHandler

func (*RESTInspectorHandler) StartAccept

func (handler *RESTInspectorHandler) StartAccept(readyEntityCh chan *TransitionEntity)

Jump to

Keyboard shortcuts

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