app

package
v0.0.0-...-415d676 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ApplicationProviderSet is a provider set for building an application

Functions

This section is empty.

Types

type ApplicationRunFunc

type ApplicationRunFunc func() error

ApplicationRunFunc is a plain function that runs an application and returns an error

func ProvideApplicationRunFunc

func ProvideApplicationRunFunc(logger *log.MultiLogger, runServer web.ServerRunFunc, interrupt InterruptChannel) ApplicationRunFunc

ProvideApplicationRunFunc creates an ApplicationRunFunc that runs a webserver and stops on interrupt

type InterruptChannel

type InterruptChannel <-chan os.Signal

InterruptChannel is a channel containing interrupts to stop the application

func ProvideInterruptChannel

func ProvideInterruptChannel() InterruptChannel

ProvideInterruptChannel builds an InterruptChannel from SIGTERM signals

Jump to

Keyboard shortcuts

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