Sha256: de50aba7a2a9bca23c6b9b92c58a746aa864e65a40d488ab11e691c3c47e0911

Contents?: true

Size: 719 Bytes

Versions: 10

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(*ALLOWED_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

10 entries across 10 versions & 1 rubygems

Version Path
mihari-4.12.0 lib/mihari/types.rb
mihari-4.11.0 lib/mihari/types.rb
mihari-4.10.0 lib/mihari/types.rb
mihari-4.9.0 lib/mihari/types.rb
mihari-4.8.0 lib/mihari/types.rb
mihari-4.7.4 lib/mihari/types.rb
mihari-4.7.3 lib/mihari/types.rb
mihari-4.7.2 lib/mihari/types.rb
mihari-4.7.1 lib/mihari/types.rb
mihari-4.7.0 lib/mihari/types.rb