app

package
v0.0.0-...-3a27eef Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: GPL-3.0 Imports: 16 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 *mux.Router
	DB     *sql.DB
	Routes []controller.Controller
	// contains filtered or unexported fields
}

App - main app struct

func (*App) Initialize

func (a *App) Initialize(config *config.Config)

Initialize the app

func (*App) Register

func (a *App) Register(r *mux.Router, s controller.Controller, m ...middleware.Middleware)

Register a controller with subroute

func (*App) Run

func (a *App) Run()

Run the app on it's router

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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