Documentation ¶
Index ¶
- type Application
- func (x *Application) Close() (err error)
- func (x *Application) CronInit() (err error)
- func (x *Application) DBinit() error
- func (x *Application) KafkaInit()
- func (x *Application) LoadConfigs() error
- func (x *Application) LoadPermissions() error
- func (x *Application) NorthstarInit()
- func (x *Application) S3init() (err error)
- type KafkaInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Name string `json:"name"` Port string `json:"port"` Version string `json:"version"` ENV string `json:"env"` Config viper.Viper `json:"prog_config"` DB *gorm.DB `json:"db"` Kafka KafkaInstance `json:"kafka"` Cron cron.Cron `json:"cron"` Permission viper.Viper `json:"prog_permission"` Northstar logs.NorthstarLib S3 components.S3 }
Application main variable of the app
var App *Application
App main var
func (*Application) LoadConfigs ¶
func (x *Application) LoadConfigs() error
LoadConfigs loads general configs
func (*Application) LoadPermissions ¶
func (x *Application) LoadPermissions() error
LoadPermissions loads general configs
func (*Application) NorthstarInit ¶
func (x *Application) NorthstarInit()
NorthstarInit config for northstar logger
type KafkaInstance ¶
KafkaInstance stores kafka configs
Click to show internal directories.
Click to hide internal directories.