bootstrap

package
v0.0.0-...-9dec8c7 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StaticAssets = "./public"
	Favicon      = "favicon.ico"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bootstrapper

type Bootstrapper struct {
	*iris.Application
	AppName     string
	AppOwner    string
	AppSpawDate time.Time
}

func New

func New(appName, appOwner string, cfgs ...Configurator) *Bootstrapper

func (*Bootstrapper) Bootstrap

func (b *Bootstrapper) Bootstrap() *Bootstrapper

func (*Bootstrapper) Configure

func (b *Bootstrapper) Configure(cs ...Configurator)

func (*Bootstrapper) Listen

func (b *Bootstrapper) Listen(addr string, cfgs ...iris.Configurator)

func (*Bootstrapper) SetupErrorHandlers

func (b *Bootstrapper) SetupErrorHandlers()

func (*Bootstrapper) SetupViews

func (b *Bootstrapper) SetupViews(viewDir string)

type Configurator

type Configurator func(bootstrapper *bootstrap.Bootstrapper)

Jump to

Keyboard shortcuts

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