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.
Click to show internal directories.
Click to hide internal directories.