wamputil

package
v0.0.0-...-f8334dc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package wamputil provides utility functions for working with WAMP.

Specifically the Nexus library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDictValue

func GetDictValue(dict wamp.Dict, key string) (interface{}, bool)

GetDictValue safely gets the value of the given key from a wamp.Dict.

func GetListValue

func GetListValue(list wamp.List, i int) (interface{}, bool)

GetListValue safely gets the value at the given index from a wamp.List.

func List

func List(value interface{}, ok bool) (wamp.List, bool)

func PopListValue

func PopListValue(list *wamp.List, i int) (interface{}, bool)

func SetDictValue

func SetDictValue(dict wamp.Dict, key string, value interface{}) wamp.Dict

SetDictValue adds the key value pair to the dict and returns it.

func Snowflake

func Snowflake(value interface{}, ok bool) (string, bool)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL