Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func History ¶
func History(history dispatcher.History) func(w http.ResponseWriter, r *http.Request)
History returns history data
func Push ¶
func Push(reg dispatcher.Registrar) func(w http.ResponseWriter, r *http.Request)
Push handler for push subscribers
func Stats ¶
func Stats(dispatcher dispatcher.Dispatcher) func(w http.ResponseWriter, r *http.Request)
Stats returns subscriber stats
Types ¶
type NotificationsPushHealthcheck ¶
type NotificationsPushHealthcheck struct { Client *http.Client ConsumerConfig consumer.QueueConfig }
NotificationsPushHealthcheck is the main health check for the notifications-push service
func NewNotificationsPushHealthcheck ¶
func NewNotificationsPushHealthcheck(consumerConfig consumer.QueueConfig) *NotificationsPushHealthcheck
NewNotificationsPushHealthcheck returns a new instance of NotificationsPushHealthcheck. It requires the configuration of the consumer queue.
func (*NotificationsPushHealthcheck) Check ¶
func (hc *NotificationsPushHealthcheck) Check() fthealth.Check
Check is the the NotificationsPushHealthcheck method that checks is the queue proxies are available
func (*NotificationsPushHealthcheck) GTG ¶
func (hc *NotificationsPushHealthcheck) GTG(w http.ResponseWriter, req *http.Request)
GTG is the HTTP handler function for the good-to-go endpoint of notifications-push
Click to show internal directories.
Click to hide internal directories.