Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type JSONCaller ¶
type JSONCaller struct{}
JSONCaller unmarshals call arguments with json package and calls action.Run
func NewJSONCaller ¶
func NewJSONCaller() JSONCaller
type Request ¶
type Request struct { Method string `json:"method"` Arguments []interface{} `json:"arguments"` }
type Response ¶
type Response struct { Result interface{} `json:"result"` Error *ResponseError `json:"error"` Log string `json:"log"` }
type ResponseError ¶
type ResponseError struct { Type string `json:"type"` Message string `json:"message"` CanRetry bool `json:"ok_to_retry"` }
func (ResponseError) Error ¶
func (r ResponseError) Error() string
Click to show internal directories.
Click to hide internal directories.