Documentation ¶
Index ¶
- Constants
- func ErrorAddKwarg(res *client.InvokeResult, key string, value interface{})
- func ErrorResult(uri wamp.URI) client.InvokeResult
- func GetArg(args wamp.List, i int) (interface{}, bool)
- func GetStrArg(args wamp.List, i int) (string, bool)
- func InvalidArgumentResult(message string) client.InvokeResult
- func NewWAMPHandler(ctx context.Context, c *client.Client) *wampHandler
- func SingleValueResult(value interface{}) client.InvokeResult
Constants ¶
View Source
const ( // ErrInternalError represents an internal error. ErrInternalError = wamp.URI("io.elakshi.internal_error") )
Variables ¶
This section is empty.
Functions ¶
func ErrorAddKwarg ¶
func ErrorAddKwarg(res *client.InvokeResult, key string, value interface{})
ErrorAddKwarg adds a keyword argument to the given client.InvokeResult.
func ErrorResult ¶
func ErrorResult(uri wamp.URI) client.InvokeResult
ErrorResult creates a new client.InvokeResult with the given error uri.
func InvalidArgumentResult ¶
func InvalidArgumentResult(message string) client.InvokeResult
InvalidArgumentResult creates a new client.InvokeResult with the ErrInvalidArgument error uri and the given message as its first argument.
func NewWAMPHandler ¶
NewWAMPHandler creates a new api.Handler which provides interaction over WAMP. ctx must contain an API core, otherwise the function panics.
func SingleValueResult ¶
func SingleValueResult(value interface{}) client.InvokeResult
SingleValueResult returns a wamp client.InvokeResult with the given value as its only argument.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.