15 lines
626 B
Go
15 lines
626 B
Go
|
|
package observability
|
||
|
|
|
||
|
|
// Identifiable is implemented by infrastructure components that can report their
|
||
|
|
// module identity — the import path and released version.
|
||
|
|
// The launcher reads this interface from all registered components to print
|
||
|
|
// the loaded-module list after the startup banner.
|
||
|
|
type Identifiable interface {
|
||
|
|
// ModulePath returns the fully-qualified Go module import path.
|
||
|
|
// Example: "code.nochebuena.dev/einherjar/web"
|
||
|
|
ModulePath() string
|
||
|
|
// ModuleVersion returns the version this module was compiled at.
|
||
|
|
// Returns "(devel)" when the binary was built from a local workspace.
|
||
|
|
ModuleVersion() string
|
||
|
|
}
|