Documentation ¶
Index ¶
- type MicroRestConfig
- func (c *MicroRestConfig) AddRV(key string, val interface{})
- func (c *MicroRestConfig) AddRVFromEnv(envar string)
- func (c *MicroRestConfig) DefaultMicroConfig() error
- func (c *MicroRestConfig) LoadDatabases(logLvl logrus.Level, dburls ...string) error
- func (c *MicroRestConfig) LoadHMACKeys() error
- func (c *MicroRestConfig) LoadLogger()
- func (c *MicroRestConfig) LoadMockDatabase()
- func (c *MicroRestConfig) LoadNewRelicInfo() error
- func (c *MicroRestConfig) LoadRV(vars ...string)
- func (c *MicroRestConfig) LoadServiceInfo()
- func (c *MicroRestConfig) RegisterAtGateway() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MicroRestConfig ¶
type MicroRestConfig struct { NewRelic newRelicInfo Service serviceInfo RV map[string]interface{} Logger *logrus.Logger // default to be used when setting up config. DB *gorm.DB // only used if more than one db is needed. DBList []*gorm.DB HmacKeys *models.HmacKeys }
func (*MicroRestConfig) AddRV ¶
func (c *MicroRestConfig) AddRV(key string, val interface{})
func (*MicroRestConfig) AddRVFromEnv ¶
func (c *MicroRestConfig) AddRVFromEnv(envar string)
func (*MicroRestConfig) DefaultMicroConfig ¶
func (c *MicroRestConfig) DefaultMicroConfig() error
func (*MicroRestConfig) LoadDatabases ¶
func (c *MicroRestConfig) LoadDatabases(logLvl logrus.Level, dburls ...string) error
func (*MicroRestConfig) LoadHMACKeys ¶
func (c *MicroRestConfig) LoadHMACKeys() error
func (*MicroRestConfig) LoadLogger ¶
func (c *MicroRestConfig) LoadLogger()
func (*MicroRestConfig) LoadMockDatabase ¶
func (c *MicroRestConfig) LoadMockDatabase()
func (*MicroRestConfig) LoadNewRelicInfo ¶
func (c *MicroRestConfig) LoadNewRelicInfo() error
func (*MicroRestConfig) LoadRV ¶
func (c *MicroRestConfig) LoadRV(vars ...string)
func (*MicroRestConfig) LoadServiceInfo ¶
func (c *MicroRestConfig) LoadServiceInfo()
func (*MicroRestConfig) RegisterAtGateway ¶
func (c *MicroRestConfig) RegisterAtGateway() error
Click to show internal directories.
Click to hide internal directories.