Package-level declarations

Types

Link copied to clipboard
class FakeIotDataPlane(messages: Storage<List<PublishedMessage>> = Storage.InMemory(), shadows: Storage<String> = Storage.InMemory(), retainedMessages: Storage<RetainedMessage> = Storage.InMemory(), region: Region = Region.of("ldn-north-1"), endpoint: Uri = Uri.of("https://http4k-ats.iot.$region.amazonaws.com"), clock: Clock = Clock.systemUTC()) : ChaoticHttpHandler
Link copied to clipboard
data class PublishedMessage(val topic: TopicName, val payload: Base64Blob, val qos: Int? = null, val retain: Boolean? = null, val contentType: String? = null, val messageExpiry: Long? = null, val responseTopic: String? = null, val correlationData: String? = null, val payloadFormatIndicator: String? = null, val userProperties: String? = null)

A message recorded by FakeIotDataPlane. The header fields are kept in their raw wire form so tests can assert on exactly what was transmitted.

Functions

Link copied to clipboard
fun main()
Link copied to clipboard
fun storageKey(thingName: ThingName, shadowName: ShadowName? = null): String

Public so that a Storage passed to the fake can be pre-seeded with shadows.