app

package
v0.0.0-...-d9c4052 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2014 License: GPL-3.0 Imports: 17 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 {
	Martini    *martini.ClassicMartini
	Config     *services.Config
	Connection *services.Connection
	LogFile    *os.File
	Logger     *log.Logger
}

App represents the application, it contains the martini instance and the instances of the Config and Connection services along with the LogFile to be closed after running the application

func NewApp

func NewApp(configPath string) (*App, error)

NewApp creates a new application given a path to a config file

Jump to

Keyboard shortcuts

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