Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ApplicationProviderSet = wire.NewSet( ProvideApplicationRunFunc, ProvideInterruptChannel, )
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 ¶
InterruptChannel is a channel containing interrupts to stop the application
func ProvideInterruptChannel ¶
func ProvideInterruptChannel() InterruptChannel
ProvideInterruptChannel builds an InterruptChannel from SIGTERM signals
Click to show internal directories.
Click to hide internal directories.