app

package
v0.0.0-...-9ac729f Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Router      *gin.Engine
	MRouter     *gin.Engine
	MongoClient *mongo.Client
	Config      *appConfig
	PubSub      *notify.Pubsub
}

App is the core of the application holding all the necessary components

func (*App) Initialize

func (a *App) Initialize()

Initialize is the function to initialize the application, loads config connects to database etc.

func (*App) Run

func (a *App) Run()

Run is the function to start the server

func (*App) StartNotificationService

func (a *App) StartNotificationService()

StartNotificationService starts notification service to recieve user events and send notification

Jump to

Keyboard shortcuts

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