loaders

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoaderCatalog

func LoaderCatalog() []check.Loader

LoaderCatalog returns the loaders sorted by desired sequence order

func RegisterLoader

func RegisterLoader(order int, factory LoaderFactory)

RegisterLoader adds a loader to the loaderCatalog

Types

type LoaderFactory

type LoaderFactory func() (check.Loader, error)

LoaderFactory helps to defer actual instantiation of Check Loaders, mostly helpful with code involving calls to cgo (for example, the Python interpreter might not be initialized when `init`ing a package)

Jump to

Keyboard shortcuts

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