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'])
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)
Click to show internal directories.
Click to hide internal directories.