Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { ID int `json:",omitempty"` // ID can be used from the client to identify responses Name string // Name of the action that is called // Args as object, gets parsed by the called function Args json.RawMessage `json:",omitempty"` }
type HTMLUpdate ¶
type HTMLUpdate struct { Operation HTMLOp // how to apply this update Selector string // jQuery style selector: #id .class Content string `json:",omitempty"` // inner HTML // Init calls are executed after the HTML is added Init []JSCall `json:",omitempty"` // Destroy calls are executed before the HTML is removed Destroy []JSCall `json:",omitempty"` }
type JSCall ¶
type JSCall struct { Name string // name of the function to call // Arguments as object, gets encoded by the called function Arguments json.RawMessage `json:",omitempty"` }
type Response ¶
type Response struct {
Results []Result
}
Response is the returned body of a GUI API call
type Result ¶
type Result struct { ID int `json:",omitempty"` // ID from the calling action is returned Name string // Name of the action that was called Error *Error `json:",omitempty"` HTML []HTMLUpdate `json:",omitempty"` // DOM updates to apply JS []JSCall `json:",omitempty"` // JS calls to execute }
Click to show internal directories.
Click to hide internal directories.