bootstraper

package
v0.0.0-...-41229de Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: Apache-2.0 Imports: 5 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 Bootstraper

type Bootstraper struct {
	*iris.Application
	AppName      string
	AppOwner     string
	AppSpawnDate time.Time

	Sessions *sessions.Sessions
}

func New

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

func (*Bootstraper) Bootstrap

func (b *Bootstraper) Bootstrap() *Bootstraper

func (*Bootstraper) Configure

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

func (*Bootstraper) Listen

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

func (*Bootstraper) SetupErrorHandlers

func (b *Bootstraper) SetupErrorHandlers()

type Configurator

type Configurator func(*Bootstraper)

Jump to

Keyboard shortcuts

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