def auth.of

bend-kit-postgres@0.3.0.0 · codec.bend:573

import bend-kit-postgres@0.3.0.0/codec.bend as Codec
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

573def auth.of(k: U32, +code: U32, c: Cur) -> Cur & Back:
574  match k:
575    case 0:
576      (c, AuthOk{})
577    case 3:
578      (c, AuthCleartext{})
579    case 10:
580      one(List<&1, Bytes.Bytes>, xs => AuthSASL{xs}, names.dec(c))
581    case _:
582      auth.data(code, code, rest(c))

Uses (14)

Used by (1)