Documentation
¶
Overview ¶
Package metrics implements the metrics.core microservice.
The Metrics service is a core microservice that aggregates metrics from other microservices and makes them available for collection.
Index ¶
Constants ¶
const Hostname = "metrics.core"
Hostname is the default hostname of the microservice: metrics.core.
const SourceCodeSHA256 = "fa26a2a78b68327051b1401a423f0a6962bd8ebd25fc05556c032aab5ab0a938"
const Timestamp = "2024-08-01T15:49:25.026412Z"
const Version = 143
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mock ¶
type Mock = intermediate.Mock
Mock is a mockable version of the metrics.core microservice, allowing functions, event sinks and web handlers to be mocked.
type Service ¶
type Service struct {
*intermediate.Intermediate // DO NOT REMOVE
}
Service implements the metrics.core microservice.
The Metrics service is a core microservice that aggregates metrics from other microservices and makes them available for collection.
func (*Service) Init ¶
Init enables a single-statement pattern for initializing the microservice.
svc.Init(func(svc Service) { svc.SetGreeting("Hello") })
func (*Service) OnShutdown ¶
OnShutdown is called when the microservice is shut down.
Directories
¶
Path | Synopsis |
---|---|
app
|
|
Package intermediate serves as the foundation of the metrics.core microservice.
|
Package intermediate serves as the foundation of the metrics.core microservice. |
Package metricsapi implements the public API of the metrics.core microservice, including clients and data structures.
|
Package metricsapi implements the public API of the metrics.core microservice, including clients and data structures. |