tuweni / org.apache.tuweni.ethstats / EthStatsServer

EthStatsServer

class EthStatsServer : CoroutineScope (source)

Constructors

<init>

EthStatsServer(vertx: Vertx, networkInterface: String, port: Int, secret: String, timeSupplier: () -> Instant = Instant::now, controller: EthStatsServerController, coroutineContext: CoroutineContext = Dispatchers.Default)

Properties

coroutineContext

val coroutineContext: CoroutineContext

networkInterface

val networkInterface: String

port

var port: Int

secret

val secret: String

Functions

connect

fun connect(serverWebSocket: ServerWebSocket): Unit

start

suspend fun start(): Unit

stop

suspend fun stop(): Unit

Companion Object Properties

logger

val logger: Logger!

mapper

val mapper: ObjectMapper