package
0.31.5
Repository: https://github.com/rnssolution/prism.git
Documentation: pkg.go.dev

# Functions

DefaultConfig returns a default configuration.
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
Listen starts a new net.Listener on the given address.
NewRPCFunc wraps a function for introspection.
NewWebsocketManager returns a new WebsocketManager that passes a map of functions, connection options and logger to new WS connections.
NewWSConnection wraps websocket.Conn.
NewWSRPCFunc wraps a function for introspection and use in the websockets.
OnDisconnect sets a callback which is used upon disconnect - not Goroutine-safe.
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.
StartHTTPAndTLSServer takes a listener and starts an HTTPS server with the given handler.
StartHTTPServer takes a listener and starts an HTTP server with the given handler.
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
No description provided by the author

# Structs

Config is a RPC server configuration.
Remember the status for logging.
RPCFunc contains the introspected type information for a function.
WebsocketManager provides a WS handler for incoming connections and passes a map of functions along with any additional params to new connections.