covid19

package
v0.0.0-...-791dfb5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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) Close

func (x *Application) Close() (err error)

Close apps

func (*Application) CronInit

func (x *Application) CronInit() (err error)

CronInit load cron

func (*Application) DBinit

func (x *Application) DBinit() error

DBinit loads DBinit configs

func (*Application) KafkaInit

func (x *Application) KafkaInit()

KafkaInit init kafka instance

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

func (*Application) S3init

func (x *Application) S3init() (err error)

S3init load config for s3

type KafkaInstance

type KafkaInstance struct {
	Config *sarama.Config
	Host   string
}

KafkaInstance stores kafka configs

Jump to

Keyboard shortcuts

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