feral-dot-io/protoc-gen-elmer/1.0.1

Protobuf.Elmer

Helper types and functions for protoc-gen-elmer codegen. This module should not be used directly.

See the project on how this may be used: https://github.com/feral-dot-io/protoc-gen-elmer

Well-known types

type alias BoolValue =
Maybe Bool
type alias BytesValue =
Maybe Bytes
type alias DoubleValue =
Maybe Float
type alias FloatValue =
Maybe Float
type alias Int32Value =
Maybe Int
type alias Int64Value =
Maybe Int
type alias StringValue =
Maybe String
type alias UInt32Value =
Maybe Int
type alias UInt64Value =
Maybe Int

Empty (zero) vlaues

emptyAny : Any
emptyApi : Api
emptyBoolValue : BoolValue
emptyBytes : Bytes
emptyBytesValue : BytesValue
emptyDoubleValue : FloatValue
emptyDuration : Duration
emptyEmpty : Empty
emptyEnum : Enum
emptyEnumValue : EnumValue
emptyField : Field
emptyFieldMask : FieldMask
emptyFloatValue : FloatValue
emptyInt32Value : Int64Value
emptyInt64Value : Int64Value
emptyListValue : ListValue
emptyMethod : Method
emptyMixin : Mixin
emptyNullValue : NullValue
emptyOption : Option
emptySourceContext : SourceContext
emptyStringValue : StringValue
emptyStruct : Struct
emptySyntax : Syntax
emptyUInt32Value : Maybe Int
emptyUInt64Value : Maybe Int
emptyValue : Value
emptyXType : Type

Decoders

decodeBoolValue : Decoder BoolValue
decodeBytesValue : Decoder BytesValue
decodeDoubleValue : Decoder FloatValue
decodeFloatValue : Decoder FloatValue
decodeInt32Value : Decoder Int32Value
decodeInt64Value : Decoder Int64Value
decodeStringValue : Decoder StringValue
decodeTimestamp : Decoder Posix
decodeUInt32Value : Decoder UInt32Value
decodeUInt64Value : Decoder UInt64Value
decodeValue : Decoder w -> Decoder (Maybe w)

Encoders

encodeAny : Any -> Encoder
encodeBoolValue : BoolValue -> Encoder
encodeBytesValue : BytesValue -> Encoder
encodeDoubleValue : FloatValue -> Encoder
encodeFloatValue : FloatValue -> Encoder
encodeInt32Value : Int32Value -> Encoder
encodeInt64Value : Int64Value -> Encoder
encodeStringValue : StringValue -> Encoder
encodeTimestamp : Posix -> Encoder
encodeUInt32Value : UInt32Value -> Encoder
encodeUInt64Value : UInt64Value -> Encoder
encodeValue : (v -> Encoder) -> Maybe v -> Encoder