unified gateway interface

This commit is contained in:
Stephan D
2025-12-31 17:47:32 +01:00
parent 19b7b69bd8
commit 97ba7500dc
104 changed files with 8228 additions and 1742 deletions

View File

@@ -0,0 +1,31 @@
package discovery
import (
"github.com/tech/sendico/pkg/model"
nm "github.com/tech/sendico/pkg/model/notification"
"github.com/tech/sendico/pkg/mservice"
)
func ServiceAnnounceEvent() model.NotificationEvent {
return model.NewNotification(mservice.Discovery, nm.NADiscoveryServiceAnnounce)
}
func GatewayAnnounceEvent() model.NotificationEvent {
return model.NewNotification(mservice.Discovery, nm.NADiscoveryGatewayAnnounce)
}
func HeartbeatEvent() model.NotificationEvent {
return model.NewNotification(mservice.Discovery, nm.NADiscoveryHeartbeat)
}
func LookupRequestEvent() model.NotificationEvent {
return model.NewNotification(mservice.Discovery, nm.NADiscoveryLookupRequest)
}
func LookupResponseEvent() model.NotificationEvent {
return model.NewNotification(mservice.Discovery, nm.NADiscoveryLookupResponse)
}
func RefreshUIEvent() model.NotificationEvent {
return model.NewNotification(mservice.Discovery, nm.NADiscoveryRefreshUI)
}