coreinit

package
v0.56.0-beta-2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallInitExtension

func CallInitExtension(caller func(e InitExtension) error) error

CallInitExtension iterates through registered InitExtensions in order and calls the provided function for each.

func RegisterInitExtension

func RegisterInitExtension(order int, extension InitExtension)

RegisterInitExtension registers an InitExtension with a specified order.

Types

type InitExtension

type InitExtension interface {
	// BeforeAll is called before starting everything used for initializing tools for this process itself(e.g profiler, logger, ...etc)
	BeforeAll() error

	// ConfigureParameterStore is called after calling BeforeAll(). It used for registering own parameter store.
	ConfigureParameterStore() error

	// AfterParsingParameters is called after parsing parameters.
	AfterParsingParameters() error

	// ConfigureInspectionTaskServer is called after AfterParsingParameters to configure the task server.
	ConfigureInspectionTaskServer(taskServer *coreinspection.InspectionTaskServer) error

	// ConfigureKHIWebServerFactory is called after ConfigureInspectionTaskServer to configure the web server factory.
	ConfigureKHIWebServerFactory(serverFactory *server.ServerFactory) error

	// BeforeTerminate is called before terminating KHI process.
	BeforeTerminate() error
}

InitExtension provides the extensible points for initialization step.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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