org.sigilaris.node.gossip.GossipFieldValidation
Validation utilities for gossip protocol field values.
Attributes
-
Source
-
GossipRejections.scala
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
-
Self type
-
Members list
Validates that a value is a non-empty lowercase ASCII token.
Validates that a value is a non-empty lowercase ASCII token.
Value parameters
-
kind
-
the field name, used in error messages
-
value
-
the value to validate
Attributes
-
Returns
-
the value or an error message
-
Source
-
GossipRejections.scala
Validates that a value is a valid gossip topic string.
Validates that a value is a valid gossip topic string.
Value parameters
-
value
-
the topic string to validate
Attributes
-
Returns
-
the value or an error message
-
Source
-
GossipRejections.scala
Validates that a value is a canonical lowercase UUIDv4 string.
Validates that a value is a canonical lowercase UUIDv4 string.
Value parameters
-
kind
-
the field name, used in error messages
-
value
-
the UUID string to validate; uppercase forms are rejected to keep the wire representation canonical
Attributes
-
Returns
-
the validated UUID string or an error message
-
Source
-
GossipRejections.scala