CrossClj

1.1.0 docs

SourceDocs



RECENT
    VARS
    ->ks
    build-config
    env
    env-var
    file
    properties
    read-config!
    read-edn
    read-env-file
    read-system
    resource

    « Index of all namespaces of this project

    (->ks prefix s)
    Normalize the string, split and map to keywords.
    Returns nil if the string doesn't match the app property prefix.
    (build-config & parts)
    Merges given configuration parts.
    
    (env prefix)
    Reads configuration part from envinronment variables, filtered by a prefix.
    
    (env-var var-name path)
    Reads a configuration value from an environment variable and associates it to
    the given path in a map.
    
        (env-var "SERVER_PORT" [:http :port])  ; => {:http {:port "8080"}}
    (file file-path)(file file-path reader-opts)
    Reads configuration part from given path in filesystem.
    
    (properties prefix)
    Reads configuration part from system properties, filtered by a prefix.
    
    (read-config! prefix)(read-config! prefix override)
    Read and merge config from several sources:
    
    - config-defaults.edn resource
    - envinronment variables (filtered by prefix)
    - system properties (filtered by prefix)
    - config-local.edn file in current directory
    - override parameter
    Private
    (read-edn s reader-opts)
    (read-env-file env-file)(read-env-file env-file reader-opts)
    Read config from given File or URL.
    Non-existing files are skipped.
    (read-system prefix properties)
    (resource path)(resource path reader-opts)
    Reads configuration part from given path in classpath.