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 { ConsensusInfoFeed iface.ConsensusInfoFeed Db db.Database VanguardPendingShardingCache cache.VanguardShardCache PandoraPendingHeaderCache cache.PandoraHeaderCache // 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
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service defining an RPC server for a orchestrator node.
func NewService ¶
NewService instantiates a new RPC service instance that will be registered into a running orchestrator node.
Click to show internal directories.
Click to hide internal directories.