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