rpc

package
v0.0.0-...-da200cc Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenRPC

func ListenRPC(app *core.App, config StandaloneConfig) error

listenRPC starts the RPC server and listens on config.RPCPort. It blocks until there is an error or the RPC server is closed.

func SetupOrderStream

func SetupOrderStream(ctx context.Context, app *core.App) (*ethRpc.Subscription, error)

SetupOrderStream sets up the order stream for a subscription

Types

type StandaloneConfig

type StandaloneConfig struct {
	// RPCPort is the port to use for the JSON RPC API over WebSockets. By
	// default, 0x Mesh will let the OS select a randomly available port.
	RPCPort int `envvar:"RPC_PORT" default:"60557"`
}

Jump to

Keyboard shortcuts

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