bootstrap

package
v0.0.0-...-004ddcb Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package bootstrap contains all abstractions and implementation necessary to bootstrap the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(
	ctx context.Context,
	cancel context.CancelFunc,
	configuration config.Configuration,
	handlers []BootstrapHandler)

Run is the bootstrap process entry point. All relevant application components can be initialized by providing a BootstrapHandler implementation to the handlers array.

Types

type BootstrapHandler

type BootstrapHandler func(
	ctx context.Context,
	wg *sync.WaitGroup) (success bool)

BootstrapHandler defines the contract each bootstrap handler must fulfill. Implementation returns true if the handler completed successfully, false if it did not.

Jump to

Keyboard shortcuts

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