config

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL