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 = "0a35108b76b7af3b5af1160dccb3797a6e6e4d5370f0b00b421c85894e449658"
const Timestamp = "2024-07-14T02:54:32.499206Z"
const Version = 140
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. |