Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Name string // HTTPHost is the host interface on which to start the HTTP RPC server. If this // field is empty, no HTTP API endpoint will be started. HTTPHost string // HTTPPort is the TCP port number on which to start the HTTP RPC server. The // default zero value is/ valid and will pick a port number randomly (useful // for ephemeral nodes). HTTPPort int `toml:",omitempty"` // HTTPPathPrefix specifies a path prefix on which http-rpc is to be served. HTTPPathPrefix string `toml:",omitempty"` // WSPathPrefix specifies a path prefix on which ws-rpc is to be served. WSPathPrefix string `toml:",omitempty"` // BatchRequestLimit is the maximum number of requests in a batch. BatchRequestLimit int `toml:",omitempty"` // BatchResponseMaxSize is the maximum number of bytes returned from a batched rpc call. BatchResponseMaxSize int `toml:",omitempty"` }
Config represents a small collection of configuration values to fine tune the P2P network layer of a protocol stack. These values can be further extended by all registered services.
func DefaultConfig ¶
type EERPCServer ¶
type EERPCServer struct { service.BaseService // contains filtered or unexported fields }
func NewEeRPCServer ¶
New creates a new server
func (*EERPCServer) Address ¶
func (s *EERPCServer) Address() net.Addr
Address returns the address the server is listening on
Must be called after server.Start()
func (*EERPCServer) OnStart ¶
func (s *EERPCServer) OnStart() error
func (*EERPCServer) OnStop ¶
func (s *EERPCServer) OnStop()
func (*EERPCServer) ServiceName ¶
func (s *EERPCServer) ServiceName() string
Click to show internal directories.
Click to hide internal directories.