coreinit

package
v0.51.4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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