application

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

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

Go to latest
Published: Nov 27, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

Application is your service

func NewApplication

func NewApplication() *Application

func (*Application) Run

func (self *Application) Run(c func(*ApplicationContext))

Run application

func (*Application) SetContext

func (self *Application) SetContext(c ApplicationContext)

Setup application context

func (*Application) SetOnStart

func (self *Application) SetOnStart(c func(*ApplicationContext))

Setup application start event

func (*Application) SetOnStop

func (self *Application) SetOnStop(c func(*ApplicationContext))

Setup application stop event

type ApplicationContext

type ApplicationContext interface{}

Jump to

Keyboard shortcuts

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