bootstrap

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: MIT Imports: 4 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 {
	*iris.Application
	AppSpawnDate time.Time
}

Application is responsible to manage the state of the application. It contains and handles all the necessary parts to create a fast web server.

func New

func New() *Application

New will return a new instance of Application

func (*Application) Bootstrap

func (a *Application) Bootstrap() *Application

Bootstrap will bootstrap the base application instance

func (*Application) Configure

func (a *Application) Configure(Configurators ...Configurator)

Configure runs all given configurators in a pipeline

func (*Application) Listen

func (a *Application) Listen(address string, configurators ...iris.Configurator)

Listen will run the application on given address

func (*Application) SetupErrorHandlers

func (a *Application) SetupErrorHandlers()

SetupErrorHandlers will handle response for any kind of errors It uses `message` and `code` value that has set in context

type Configurator

type Configurator func(*Application)

Configurator is just a function which accepts the framework instance. It is used for configuring application instance

Jump to

Keyboard shortcuts

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