app

package
v0.0.0-...-1276dd2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 License: MIT Imports: 10 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 {
	C   *ctx.Context
	Srv *server.Server
}

App is an application with context

func New

func New(f CmdFlags) (*App, error)

New is a constructor

func (App) Run

func (a App) Run()

Run starts an application

func (App) Shutdown

func (a App) Shutdown()

Shutdown gracefully stops server

type CmdFlags

type CmdFlags struct {
	CfgFileName string
}

CmdFlags represents command run flags

Jump to

Keyboard shortcuts

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