org.plasmalabs.node.services.RpcHostIdValidator.scala Maven / Gradle / Ivy
The newest version!
package org.plasmalabs.node.services
object RpcHostIdValidator extends scalapb.validate.Validator[org.plasmalabs.node.services.RpcHostId] {
def validate(input: org.plasmalabs.node.services.RpcHostId): scalapb.validate.Result =
scalapb.validate.Result.run(io.envoyproxy.pgv.BytesValidation.length("RpcHostId.id", input.id, 32))
}