Documentation ¶
Index ¶
- func GetHandleConfig(actions chan Action, responses chan ActionResponse) http.HandlerFunc
- func GetHandleDebug(actions chan Action, responses chan ActionResponse) http.HandlerFunc
- func GetHandleDebugStep(actions chan Action, responses chan ActionResponse) http.HandlerFunc
- func GetHandleMemory(actions chan Action, responses chan ActionResponse) http.HandlerFunc
- func HandleIndex(w http.ResponseWriter, r *http.Request)
- func Process(actions chan Action, responses chan ActionResponse, ...)
- func Serve(ends map[string]*schema.Endpoint)
- type Action
- type ActionResponse
- type ActionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHandleConfig ¶
func GetHandleConfig(actions chan Action, responses chan ActionResponse) http.HandlerFunc
GetHandleConfig returns an handler for the configuration method
func GetHandleDebug ¶
func GetHandleDebug(actions chan Action, responses chan ActionResponse) http.HandlerFunc
GetHandleDebug returns an handler for the debug method
func GetHandleDebugStep ¶
func GetHandleDebugStep(actions chan Action, responses chan ActionResponse) http.HandlerFunc
GetHandleDebugStep returns an handler for the debug step method
func GetHandleMemory ¶
func GetHandleMemory(actions chan Action, responses chan ActionResponse) http.HandlerFunc
GetHandleMemory returns an handler for the memory method
func HandleIndex ¶
func HandleIndex(w http.ResponseWriter, r *http.Request)
HandleIndex handles the queries to the main page
Types ¶
type Action ¶
type Action struct { Type ActionType Payload interface{} }
Action represents an action that the API performs
type ActionResponse ¶
ActionResponse represents a response to an Action
type ActionType ¶
type ActionType int
ActionType represents a type of valid Action
const ( ActionConfig ActionType = iota ActionMemory ActionType = iota ActionInput ActionType = iota ActionDebugInfo ActionType = iota ActionDebugSet ActionType = iota ActionDebugStep ActionType = iota )
Click to show internal directories.
Click to hide internal directories.