app

package
v1.0.0-...-3fe6b38 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 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 Bundle

type Bundle struct {
	Id        string
	Name      string
	Version   string
	Lifecycle Lifecycle
	Fs        http.FileSystem
	Sessions  session.Resolver
	Routes    route.Router
}

type Lifecycle

type Lifecycle interface {
	Startuper
	Shutdowner
}

type LifecycleFunc

type LifecycleFunc func(starting bool, bundle *Bundle) error

Wrapper to Lifecycle to make it possible to invoke single function for any state change.

func (LifecycleFunc) Shutdown

func (lf LifecycleFunc) Shutdown(bundle *Bundle) error

func (LifecycleFunc) Startup

func (lf LifecycleFunc) Startup(bundle *Bundle) error

type ShutdownFunc

type ShutdownFunc func(bundle *Bundle) error

Wrapper to Shutdowner to make it posisble to invoke standalone function.

func (ShutdownFunc) Shutdown

func (sf ShutdownFunc) Shutdown(bundle *Bundle) error

type Shutdowner

type Shutdowner interface {
	Shutdown(bundle *Bundle) error
}

type StartupFunc

type StartupFunc func(bundle *Bundle) error

Wrapper for Startuper to make it possible to invoke standalone function.

func (StartupFunc) Startup

func (sf StartupFunc) Startup(bundle *Bundle) error

type Startuper

type Startuper interface {
	Startup(bundle *Bundle) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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