Documentation ¶
Overview ¶
Package wamputil provides utility functions for working with WAMP.
Specifically the Nexus library.
Index ¶
- func GetDictValue(dict wamp.Dict, key string) (interface{}, bool)
- func GetListValue(list wamp.List, i int) (interface{}, bool)
- func List(value interface{}, ok bool) (wamp.List, bool)
- func PopListValue(list *wamp.List, i int) (interface{}, bool)
- func SetDictValue(dict wamp.Dict, key string, value interface{}) wamp.Dict
- func Snowflake(value interface{}, ok bool) (string, bool)
- type InvocationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDictValue ¶
GetDictValue safely gets the value of the given key from a wamp.Dict.
func GetListValue ¶
GetListValue safely gets the value at the given index from a wamp.List.
func SetDictValue ¶
SetDictValue adds the key value pair to the dict and returns it.
Types ¶
type InvocationError ¶
type InvocationError client.InvokeResult
InvocationError is a InvokeResult that implements the error interface.
func NewError ¶
func NewError(uri wamp.URI, args ...interface{}) InvocationError
NewError creates an invocation error with an error uri and arguments.
func (InvocationError) Error ¶
func (e InvocationError) Error() string
Error implements the error interface for invocation errors. It returns the error's uri.
Click to show internal directories.
Click to hide internal directories.