KrillApp

@Serializable
sealed class KrillApp(source)

Sealed type discriminator for every Krill node type.

Pure value type — every subtype is a data object, so equality is identity and the JSON wire form is a single discriminator string. The meta = {} and emit = {} constructor parameters that this class used to carry have been lifted out into sidecar extension functions in the /shared module.

Inheritors

Types

Link copied to clipboard
@Serializable
data object Avatar : KrillApp
Link copied to clipboard
@Serializable
data object Client : KrillApp
Link copied to clipboard
@Serializable
data object DataPoint : KrillApp
Link copied to clipboard
@Serializable
data object Executor : KrillApp
Link copied to clipboard
@Serializable
data object MQTT : KrillApp
Link copied to clipboard
@Serializable
data object Project : KrillApp
Link copied to clipboard
@Serializable
data object Server : KrillApp
Link copied to clipboard
@Serializable
data object Trigger : KrillApp

Functions

Link copied to clipboard

true when this KrillApp is a MenuCommand subtype rather than a real node type. Used to skip menu-command discriminators in iteration code that only cares about real swarm nodes.