Simple

data class Simple(val value: Int, val total: Int) : ShardConfig(source)

与直接构建 Shard 近似的方式。

{
"type": "simple",
"value": 0,
"total": 1
}

See also

Constructors

Link copied to clipboard
constructor(value: Int, total: Int)

Properties

Link copied to clipboard
open override val shard: Shard

得到配置的 Shard

Link copied to clipboard
val total: Int
Link copied to clipboard
val value: Int