bootstrap

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 13 Imported by: 6

Documentation

Index

Constants

View Source
const (
	EmptyProfileDir  = ""
	DoNotUseRegistry = false
)

Variables

This section is empty.

Functions

func Run

func Run(
	ctx context.Context,
	cancel context.CancelFunc,
	configDir, profileDir, configFileName string,
	useRegistry bool,
	serviceKey string,
	config interfaces.Configuration,
	startupTimer startup.Timer,
	dic *di.Container,
	handlers []interfaces.BootstrapHandler)

Run bootstraps an application. It loads configuration and calls the provided list of handlers. Any long-running process should be spawned as a go routine in a handler. Handlers are expected to return immediately. Once all of the handlers are called this function will wait for any go routines spawned inside the handlers to exit before returning to the caller. It is intended that the caller stop executing on the return of this function.

Types

This section is empty.

Directories

Path Synopsis
handlers

Jump to

Keyboard shortcuts

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