module Aws::EventStream::Types

Message Header Value Types

Public Class Methods

pattern() click to toggle source

pack/unpack pattern, byte size, type idx

# File lib/aws-eventstream/types.rb, line 23
def self.pattern
  {
    "bool_true" => [true, 0, 0],
    "bool_false" => [false, 0, 1],
    "byte" => ["c", 1, 2],
    "short" => ["s>", 2, 3],
    "integer" => ["l>", 4, 4],
    "long" => ["q>", 8, 5],
    "bytes" => [nil, nil, 6],
    "string" => [nil, nil, 7],
    "timestamp" => ["q>", 8, 8],
    "uuid" => [nil, 16, 9]
  }
end
types() click to toggle source
# File lib/aws-eventstream/types.rb, line 7
def self.types
  [
    "bool_true",
    "bool_false",
    "byte",
    "short",
    "integer",
    "long",
    "bytes",
    "string",
    "timestamp",
    "uuid"
  ]
end