aminebizid / config_mania

Config mania

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Config Mania

API

CreateScope(scope)
GetScopes()

CreateVersion(scope, version)
GetVersions(scope)

SaveConfig(scope, key, value, do_overwrite=false)            # Saves the config key within the latest version of the scope
SaveConfig(scope, key, value, version, do_overwrite=false)
SaveConfig(scope, dict, do_overwrite=false)
SaveConfig(scope, dict, version, do_overwrite=false)


GetConfig(scope, key)  # Get latest config version for a given key
GetConfig(scope, keys) # Get latest config version for a given keys

GetConfig(scope, key, version)  # Gets the latest version of the config key
GetConfig(scope, keys, version) # Gets the config of the specified keys of the requested version
GetConfig(scope, version)       # Gets all the config keys of the requested version


Subscribe(scope, version)            # Recieve an event if the version config changed
Subscribe(scope, key, version)       # Recieve an event if the version config changed for a given key
Subscribe(scope, keys, version)      # Recieve an event if the version config changed for a given keys

About

Config mania

License:GNU General Public License v3.0


Languages

Language:Dockerfile 84.3%Language:C# 15.7%