You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
303 B
Kotlin
11 lines
303 B
Kotlin
4 years ago
|
package me.eater.hefbrug.node
|
||
|
|
||
|
import me.eater.hefbrug.logging.LogFormat
|
||
|
|
||
|
data class Node(val hostname: String) : LogFormat {
|
||
|
val groups = mutableSetOf<String>()
|
||
|
|
||
|
|
||
|
override fun toString() = "Node[$hostname,groups={${groups.joinToString(",")}}]"
|
||
|
override fun logFormat() = "@|green $this|@"
|
||
|
}
|