Documentation ¶
Index ¶
- Variables
- func Application() string
- func ConfigFile(defaultConfigFile ...string) string
- type AppConfig
- type AppConfigI
- type Context
- func (c *Context) AppInstance() string
- func (c *Context) Application() string
- func (c *Context) Cache() cache.Cache
- func (c *Context) Close()
- func (c *Context) Config() interface{}
- func (c *Context) Db() db.DB
- func (c *Context) GetTestParameter(key string) (interface{}, bool)
- func (c *Context) Hostname() string
- func (c *Context) Init(configFile string, configType ...string) error
- func (c *Context) InitDB(configPath string, gormDbConnector ...*db_gorm.DbConnector) error
- func (c *Context) InitWithArgs(configFile string, args []string, configType ...string) error
- func (c *Context) SetTestParameter(key string, value interface{})
- func (c *Context) TestParameters() map[string]interface{}
- func (c *Context) Testing() bool
- func (c *Context) Validator() validator.Validator
- type WithInitGormDb
Constants ¶
This section is empty.
Variables ¶
View Source
var Revision = "unknown"
View Source
var Time = "unknown"
View Source
var Version = "development"
Functions ¶
func Application ¶
func Application() string
func ConfigFile ¶
Types ¶
type AppConfigI ¶
type Context ¶
type Context struct { logger.WithLoggerBase config.WithCfgBase // contains filtered or unexported fields }
func New ¶
func New(buildConfig *app_context.BuildConfig, appConfig ...AppConfigI) *Context
func (*Context) AppInstance ¶
func (*Context) Application ¶
func (*Context) GetTestParameter ¶
func (*Context) InitDB ¶
func (c *Context) InitDB(configPath string, gormDbConnector ...*db_gorm.DbConnector) error
func (*Context) InitWithArgs ¶
func (*Context) SetTestParameter ¶
func (*Context) TestParameters ¶
type WithInitGormDb ¶
type WithInitGormDb interface {
InitDB(configPath string, gormDbConnector ...*db_gorm.DbConnector) error
}
Click to show internal directories.
Click to hide internal directories.