Documentation ¶
Index ¶
- Constants
- type Bootstrapper
- func (b *Bootstrapper) Bootstrap() *Bootstrapper
- func (b *Bootstrapper) Configure(cs ...Configurator)
- func (b *Bootstrapper) Listen(addr string, cfgs ...iris.Configurator)
- func (b *Bootstrapper) SetupErrorHandlers()
- func (b *Bootstrapper) SetupSessions(expires time.Duration, cookieHashKey, cookieBlockKey []byte)
- func (b *Bootstrapper) SetupViews(viewsDir string)
- type Configurator
Constants ¶
View Source
const ( // StaticAssets is the root directory for public assets like images, css, js. StaticAssets = "./public/" // Favicon is the relative 9to the "StaticAssets") favicon path for our app. 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 AppSpawnDate time.Time Sessions *sessions.Sessions }
func NewApp ¶
func NewApp(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) SetupSessions ¶
func (b *Bootstrapper) SetupSessions(expires time.Duration, cookieHashKey, cookieBlockKey []byte)
func (*Bootstrapper) SetupViews ¶
func (b *Bootstrapper) SetupViews(viewsDir string)
type Configurator ¶
type Configurator func(bootstrapper *Bootstrapper)
Click to show internal directories.
Click to hide internal directories.