Sha256: 80368cc0bf6e550649e7c484563f543464e4e9b438825f72b646d13700938f7c
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
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) UrlscanDataTypes = Types::String.enum("ip", "domain", "url") AnalyzerTypes = Types::String.enum( "binaryedge", "censys", "circl", "dnpedia", "dnstwister", "greynoise", "onyphe", "otx", "passivetotal", "pt", "pulsedive", "securitytrails", "shodan", "st", "virustotal_intelligence", "virustotal", "vt_intel", "vt" ) HttpRequestMethods = Types::String.enum("GET", "POST") HttpRequestPayloadTypes = Types::String.enum("application/json", "application/x-www-form-urlencoded") EmitterTypes = Types::String.enum( "database", "http", "misp", "slack", "the_hive", "webhook" ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mihari-4.3.0 | lib/mihari/types.rb |