definition

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefinitionAPI

type DefinitionAPI interface {
	// ServiceName returns the name of the service as defined in the service.toml file.
	ServiceName() string
}

DefinitionAPI provides access to service metadata loaded from the service.toml file.

This interface is implemented by the mikros framework and made available to services that opt into the "definition" feature. It allows services to retrieve identifying information, such as the service name, without needing to manage configuration parsing directly.

Jump to

Keyboard shortcuts

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