app

package
v0.0.0-...-fdfc0d7 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package app manages main hades application server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Host      string
	Port      int
	DB        *bolt.DB
	Sessions  sessions.Store
	Hades     *hades.Hades
	Templates *template.Template
	Listener  net.Listener
	Router    *mux.Router
}

App represents main application.

func NewApp

func NewApp(host string, port int) (*App, error)

NewApp returns a new instance of App.

func (*App) Run

func (a *App) Run() error

Run imports the library and starts server.

Jump to

Keyboard shortcuts

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