package
7.1.0-beta+incompatible
Repository: https://github.com/injectivelabs/0x-mesh.git
Documentation: pkg.go.dev
# Functions
NewClient creates and returns a new client.
NewServer creates and returns a new server which will listen for new connections on the given addr and use the rpcHandler to handle incoming requests.
SetupHeartbeat sets up the heartbeat for a subscription.
# Structs
AddOrdersOpts is a set of options for the AddOrders RPC method.
Client is a JSON RPC 2.0 client implementation over WebSockets.
GetOrdersResponse is the response returned for an RPC request to mesh_getOrders.
GetStatsResponse is the response returned for an RPC request to mesh_getStats.
LatestBlock is the latest block processed by the Mesh node.
OrderInfo represents an fillable order and how much it could be filled for.
Server is a JSON RPC 2.0 server implementation over WebSockets.
# Interfaces
RPCHandler is used to respond to incoming requests from the client.