Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StatsServiceName rest.ServiceName = "stats"
StatsServiceName defines the service name for the Stats service.
Functions ¶
func RegisterGetDatabaseStatsHandler ¶
RegisterGetDatabaseStatsHandler registers the endpoint to retrieve database statistics
Types ¶
type Namespace ¶
Namespace represents a service namespace containing configuration and dependencies for the Stats service.
func NewNamespace ¶
func NewNamespace(server *rest.Server, db db.Adapter, pool *clients.ClientPool, nats *nats.Conn, cache *cache.Redis) *Namespace
NewNamespace creates a new instance of Namespace with the provided server, database adapter, client pool, NATS connection, and Redis cache.
func (*Namespace) GetName ¶
func (s *Namespace) GetName() rest.ServiceName
GetName returns the service name for the Stats namespace.
func (*Namespace) RegisterHandlers ¶
RegisterHandlers registers all the necessary handlers for the Stats namespace.
Click to show internal directories.
Click to hide internal directories.