anmolitor / elm-protoc-utils / Protobuf.Utils.Bytes

Utility methods for Bytes needed in the Protobuf/gRPC context.

jsonEncoder : Bytes -> Json.Encode.Value

Encode bytes to a the format expected by JSON-based gRPC APIs (base64 standard with padding)

jsonDecoder : Json.Decode.Decoder Bytes

Decode bytes from the format expected by JSON-based gRPC APIs (base64 standard with padding)