package
2.0.1+incompatible
Repository: https://github.com/bcbchain/toolbox.git
Documentation: pkg.go.dev
# Functions
EventSubscriber sets object that is used to subscribe / unsubscribe from events - not Goroutine-safe.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewRPCFunc wraps a function for introspection.
NewWebsocketManager returns a new WebsocketManager that routes according to the given funcMap and connects to the server with the given connection options.
NewWSConnection wraps websocket.Conn.
NewWSRPCFunc wraps a function for introspection and use in the websockets.
PingPeriod sets the duration for sending websocket pings.
ReadWait sets the amount of time to wait before a websocket read times out.
Wraps an HTTP handler, adding error logging.
RegisterRPCFuncs adds a route for each function in the funcMap, as well as general jsonrpc and websocket handlers for all functions.
No description provided by the author
No description provided by the author
WriteChanCapacity sets the capacity of the websocket write channel.
No description provided by the author
No description provided by the author
WriteWait sets the amount of time to wait before a websocket write times out.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Remember the status for logging.
RPCFunc contains the introspected type information for a function.
WebsocketManager is the main manager for all websocket connections.