Documentation
¶
Index ¶
- Variables
- type Configuration
- func (c *Configuration) GetApp() error
- func (c *Configuration) GetAppConfiguration() error
- func (c *Configuration) GetBool(key string) (bool, error)
- func (c *Configuration) GetConfiguration() error
- func (c *Configuration) GetFloat(key string) (float64, error)
- func (c *Configuration) GetInt(key string) (int64, error)
- func (c *Configuration) GetString(key string) (string, error)
- func (c *Configuration) GetValue(key string) (*ConfigurationValue, error)
- type ConfigurationApp
- type ConfigurationOptions
- type ConfigurationValue
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrValueNotFound = errors.New("configuration value not found") ErrValueDifferentType = errors.New("configuration value exists with a different data type") )
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts *ConfigurationOptions) *Configuration
func (*Configuration) GetApp ¶
func (c *Configuration) GetApp() error
func (*Configuration) GetAppConfiguration ¶
func (c *Configuration) GetAppConfiguration() error
func (*Configuration) GetConfiguration ¶
func (c *Configuration) GetConfiguration() error
func (*Configuration) GetValue ¶
func (c *Configuration) GetValue(key string) (*ConfigurationValue, error)
type ConfigurationApp ¶
type ConfigurationOptions ¶
type ConfigurationValue ¶
type ConfigurationValue struct { ID primitive.ObjectID `json:"_id" bson:"_id"` ApplicationID primitive.ObjectID `json:"appAppId" bson:"appAppId"` Name string `json:"name" bson:"name"` Key string `json:"key" bson:"key"` Type string `json:"type" bson:"type"` Int int64 `json:"valueInt" bson:"valueInt"` String string `json:"valueString" bson:"valueString"` Float float64 `json:"valueFloat" bson:"valueFloat"` Bool bool `json:"valueBool" bson:"valueBool"` }
Click to show internal directories.
Click to hide internal directories.