Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPHandlerStack ¶
NewHTTPHandlerStack returns wrapped http-related handlers
func RegisterApisFromWhitelist ¶
func RegisterApisFromWhitelist(apis []rpc.API, modules []string, srv *rpc.Server, exposeAll bool) error
RegisterApisFromWhitelist checks the given modules' availability, generates a whitelist based on the allowed modules, and then registers all of the APIs exposed by the services.
Types ¶
type Config ¶
type Config struct { EpochExpractor epochextractor.EpochExtractor // ipc config IPCPath string // http config HTTPEnable bool HTTPHost string HTTPPort int HTTPCors []string HTTPVirtualHosts []string HTTPModules []string HTTPTimeouts rpc.HTTPTimeouts HTTPPathPrefix string // WebSocket config WSEnable bool WSHost string WSPort int WSPathPrefix string WSOrigins []string }
Config
Click to show internal directories.
Click to hide internal directories.