CrossClj

0.1.0 docs

SourceDocs



RECENT
    VARS
    convert-rec
    ConvertibleToKWHashProtocol
    dns-service
    get-kw-from-lookup-type
    get-lookup-type
    invoke-protected-method
    keyword-type
    keyword-type-table
    lookup-impl
    ns-lookup
    print-recs
    rev-lookup
    type-keyword-table

    « Index of all namespaces of this project

    (convert-rec rec)
    protocol
    Convertible to a keyword hash
    
    (convert a)
    Convert data type to a keyword hash
    
    (get-kw-from-lookup-type look-type)
    (get-lookup-type kw)
    (invoke-protected-method java-obj meth-name)(invoke-protected-method klass java-obj meth-name)
    Hack to work around https://dev.clojure.org/jira/browse/CLJ-1243
    
    (lookup-impl look-type domain)
    multimethod
    Lookup DNS record for a domain.
    
    (ns-lookup "google.com")           ; defaults to :a record
    
    (ns-lookup "google.com" :a)
    (ns-lookup "google.com" :mx)
    
    (ns-lookup :a "google.com")
    (ns-lookup :mx "google.com")
    
    (ns-lookup "google.com" Type/A)
    (ns-lookup "google.com" Type/MX)
    
    (ns-lookup Type/A "google.com")
    (ns-lookup Type/MX "google.com")
    
    (print-recs recs)
    (rev-lookup ip-address)
    Lookup hostname by ip address
    
    (rev-lookup "8.8.8.8")