package init

import "github.com/influxdata/influxdb/flux/init"

Package init ensures all packages related to Flux built-ins are imported and initialized. This should only be imported from main or test packages. It is a mistake to import it from any other package.

NOTE: This is a superset-wrapper of Flux's built-in initialization logic. It also ensures V1-specific flux builtins are initialized.

Index

Functions

func Initialize

func Initialize()

Initialize ensures all Flux builtins are configured and should be called prior to using the Flux runtime. Initialize is safe to call concurrently and is idempotent.

Source Files

init.go

Directories

PathSynopsis
flux/init/staticThe init/static package can be imported in test cases and other uses cases where it is okay to always initialize flux.
Version
v1.12.0 (latest)
Published
Apr 8, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
2 days ago

Tools for package owners.