Sha256: 2bcfabfe6de2f77b8642927216fc1c6ab00f4cece960790ec839b8b6370a38d6

Contents?: true

Size: 719 Bytes

Versions: 26

Compression:

Stored size: 719 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Types
    include Dry.Types()

    Int = Strict::Integer
    Nil = Strict::Nil
    Hash = Strict::Hash
    String = Strict::String
    Bool = Strict::Bool
    Double = Strict::Float | Strict::Integer
    DateTime = Strict::DateTime

    DataTypes = Types::String.enum(*DEFAULT_DATA_TYPES)

    HTTPRequestMethods = Types::String.enum("GET", "POST")
    HTTPRequestPayloadTypes = Types::String.enum("application/json", "application/x-www-form-urlencoded")

    EmitterTypes = Types::String.enum(
      "database",
      "webhook"
    )

    EnricherTypes = Types::String.enum(
      "whois",
      "ipinfo",
      "shodan",
      "google_public_dns"
    )
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
mihari-5.5.0 lib/mihari/types.rb
mihari-5.4.9 lib/mihari/types.rb
mihari-5.4.8 lib/mihari/types.rb
mihari-5.4.7 lib/mihari/types.rb
mihari-5.4.6 lib/mihari/types.rb
mihari-5.4.5 lib/mihari/types.rb
mihari-5.4.4 lib/mihari/types.rb
mihari-5.4.3 lib/mihari/types.rb
mihari-5.4.2 lib/mihari/types.rb
mihari-5.4.1 lib/mihari/types.rb
mihari-5.4.0 lib/mihari/types.rb
mihari-5.3.2 lib/mihari/types.rb
mihari-5.3.1 lib/mihari/types.rb
mihari-5.3.0 lib/mihari/types.rb
mihari-5.2.4 lib/mihari/types.rb
mihari-5.2.3 lib/mihari/types.rb
mihari-5.2.2 lib/mihari/types.rb
mihari-5.2.1 lib/mihari/types.rb
mihari-5.2.0 lib/mihari/types.rb
mihari-5.1.4 lib/mihari/types.rb