contract

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliModule

type CliModule interface {
	Module
	RegisterCliCommands(kernelInstance kernelcontract.Kernel) []clicontract.Command
}

type EventModule

type EventModule interface {
	Module
	RegisterEventSubscribers(kernelInstance kernelcontract.Kernel)
}

type HttpModule

type HttpModule interface {
	Module
	RegisterHttpRoutes(kernelInstance kernelcontract.Kernel)
}

type Module

type Module interface {
	Name() string

	Description() string
}

type ModuleProvider

type ModuleProvider interface {
	Modules() []Module
}

type ParameterModule added in v1.6.1

type ParameterModule interface {
	Module
	RegisterParameters(registrar ParameterRegistrar)
}

type ParameterRegistrar added in v1.6.1

type ParameterRegistrar interface {
	RegisterParameter(name string, value any)
}

type ServiceModule added in v1.6.1

type ServiceModule interface {
	Module
	RegisterServices(kernelInstance kernelcontract.Kernel, registrar ServiceRegistrar)
}

type ServiceRegistrar added in v1.6.1

type ServiceRegistrar interface {
	RegisterService(
		serviceName string,
		provider any,
		options ...containercontract.RegisterOption,
	)
}

Jump to

Keyboard shortcuts

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