top

This package provides the configuration database access: Ocean uses MongoDB as database! The configuration is represented as name value pairs. Both, the name and the value, are strings. If you need numbers for the configuration, you have to convert these strings in to numbers afterwards. Use the Read() function to read a specific configuration value.

To provide own application configurations, use the function CheckSingleConfigurationPresentsAndAddIfMissing() to ensure, that at least a default value is present in the database. Collect all these function calls inside a init() function somewhere at your application.

Imported by 12 package(s)

  1. github.com/SommerEngineering/Example003
  2. github.com/SommerEngineering/Example003/Website
  3. github.com/SommerEngineering/Ocean/Admin
  4. github.com/SommerEngineering/Ocean/CustomerDB
  5. github.com/SommerEngineering/Ocean/ICCC
  6. github.com/SommerEngineering/Ocean/Log/DeviceDatabase
  7. github.com/SommerEngineering/Ocean/Robots
  8. github.com/SommerEngineering/Ocean/StaticFiles
  9. github.com/SommerEngineering/Ocean/System
  10. github.com/SommerEngineering/Ocean/Tools
  11. github.com/SommerEngineering/Ocean/WebContent
  12. github.com/SommerEngineering/Ocean/WebServer

Imports 6 package(s)

  1. github.com/SommerEngineering/Ocean/Configuration/Meta
  2. gopkg.in/mgo.v2
  3. github.com/SommerEngineering/Ocean/Configuration
  4. github.com/SommerEngineering/Ocean/Log
  5. github.com/SommerEngineering/Ocean/Log/Meta
  6. gopkg.in/mgo.v2/bson