tuweni / org.apache.tuweni.eth.crawler / CrawlerRESTService

CrawlerRESTService

class CrawlerRESTService : CoroutineScope (source)

Constructors

<init>

CrawlerRESTService(port: Int = 0, networkInterface: String = "127.0.0.1", path: String = "/", maxRequestsPerSec: Int = 30, allowedOrigins: String = "*", allowedMethods: String = "*", allowedHeaders: String = "*", repository: RelationalPeerRepository, meter: Meter, coroutineContext: CoroutineContext = Dispatchers.Default)

Properties

actualPort

var actualPort: Int?

allowedHeaders

val allowedHeaders: String

allowedMethods

val allowedMethods: String

allowedOrigins

val allowedOrigins: String

coroutineContext

val coroutineContext: CoroutineContext

maxRequestsPerSec

val maxRequestsPerSec: Int

meter

val meter: Meter

networkInterface

val networkInterface: String

path

val path: String

port

val port: Int

repository

val repository: RelationalPeerRepository

Functions

start

fun start(): Deferred<Unit>

stop

fun stop(): Deferred<Unit?>