startup

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package startup allows other packages to register startup tasks that will be run after early initialization completes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoCallbacks

func DoCallbacks()

DoCallbacks executes all callbacks currently registered.

func RegisterCallback

func RegisterCallback(cb Callback)

RegisterCallback registers a callback for later execution.

Types

type Callback

type Callback func()

A Callback is registered in init(), and must not attempt to log or initialize. They allow the order in which factories are called to be handled in the right order.

Jump to

Keyboard shortcuts

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