MockzillaConfig

data class MockzillaConfig(val port: Int, val endpoints: List<EndpointConfiguration>, val isRelease: Boolean, val localhostOnly: Boolean, val logLevel: MockzillaConfig.LogLevel, val releaseModeConfig: MockzillaConfig.ReleaseModeConfig, val isNetworkDiscoveryEnabled: Boolean, val additionalLogWriters: List<MockzillaLogWriter>)

Constructors

Link copied to clipboard
constructor(port: Int, endpoints: List<EndpointConfiguration>, isRelease: Boolean, localhostOnly: Boolean, logLevel: MockzillaConfig.LogLevel, releaseModeConfig: MockzillaConfig.ReleaseModeConfig, isNetworkDiscoveryEnabled: Boolean, additionalLogWriters: List<MockzillaLogWriter>)

Types

Link copied to clipboard
class Builder
Link copied to clipboard
Link copied to clipboard
data class ReleaseModeConfig(val rateLimit: Int = 60, val rateLimitRefillPeriod: Duration = 60.seconds, val tokenLifeSpan: Duration = 0.5.seconds)

Rate Limiting: Uses Ktor's rate limiting, params described here: https://ktor.io/docs/rate-limit.html#configure-rate-limiting Each network call will require a token with the provided lifespan

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val port: Int