app

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRouter

func CreateRouter(a App) (*gin.Engine, error)

Types

type App

type App struct {
	Notifier         notifications.Notifier
	Environment      string
	JWTSecret        []byte
	ReportsThreshold int
}

App is the core structure that is shared between all handlers

func New

func New(c config.Config) (App, error)

New returns a newly configured App

Jump to

Keyboard shortcuts

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