in frame.go [252:281]
func (c *Consistency) UnmarshalText(text []byte) error {
switch string(text) {
case "ANY":
*c = Any
case "ONE":
*c = One
case "TWO":
*c = Two
case "THREE":
*c = Three
case "QUORUM":
*c = Quorum
case "ALL":
*c = All
case "LOCAL_QUORUM":
*c = LocalQuorum
case "EACH_QUORUM":
*c = EachQuorum
case "LOCAL_ONE":
*c = LocalOne
case "SERIAL":
*c = Serial
case "LOCAL_SERIAL":
*c = LocalSerial
default:
return fmt.Errorf("invalid consistency %q", string(text))
}
return nil
}