Documentation ¶
Index ¶
- type Handler
- func (handler *Handler) HTMXEvents(rw http.ResponseWriter, r *http.Request)
- func (handler *Handler) JSONEvents(rw http.ResponseWriter, r *http.Request)
- func (handler *Handler) Route(router chi.Router)
- func (handler *Handler) SimpleEvents(rw http.ResponseWriter, r *http.Request)
- func (handler *Handler) Subscribe() (<-chan apievents.Event, func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
func NewHandler ¶
func (*Handler) HTMXEvents ¶
func (handler *Handler) HTMXEvents(rw http.ResponseWriter, r *http.Request)
func (*Handler) JSONEvents ¶
func (handler *Handler) JSONEvents(rw http.ResponseWriter, r *http.Request)
func (*Handler) SimpleEvents ¶
func (handler *Handler) SimpleEvents(rw http.ResponseWriter, r *http.Request)
SimpleEvents is a simple event stream for the purpose of notification that something did happen. Not what the content of the event is.
Useful for simple notification whose client just need to know that something happened and do something that does not require the content of the event, like refreshing the list by calling another http request.
Click to show internal directories.
Click to hide internal directories.