Documentation
¶
Overview ¶
Package notify provides a simple HTTP-based event notifier. Used by backend services to push real-time events to a WebSocket gateway.
Usage:
notify.Init("http://mf-ws:9020")
notify.Send("env", map[string]any{"action":"created","env_id":123,"workspace_id":1})
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(wsBaseURL string)
Init initializes the global notifier. wsBaseURL is the target's internal API base URL, e.g. "http://mf-ws:9020".
Types ¶
Click to show internal directories.
Click to hide internal directories.