Files
magistrala/pkg/messaging/health.go
T
2025-07-21 18:14:55 +02:00

23 lines
415 B
Go

// Copyright (c) Abstract Machines
// SPDX-License-Identifier: Apache-2.0
package messaging
import "time"
const (
HealthTopicPrefix = "hc"
StatusOK = "ok"
)
type HealthInfo struct {
// Status contains adapter status.
Status string `json:"status"`
// Protocol contains the protocol used.
Protocol string `json:"protocol"`
// Timestamp of health check.
Timestamp time.Time `json:"timestamp"`
}