Documentation ¶
Overview ¶
package sse for v1alpha uses the old SSE implemenation from the ESR log listener and the old version of the ETOS client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg config.Config, log *logrus.Entry, ctx context.Context) application.Application
New returns a new SSEApplication object/struct
Types ¶
type SSEApplication ¶
type SSEApplication struct {
// contains filtered or unexported fields
}
func (*SSEApplication) Close ¶
func (a *SSEApplication) Close()
Close cancels the application context
func (SSEApplication) LoadRoutes ¶
func (a SSEApplication) LoadRoutes(router *httprouter.Router)
LoadRoutes loads all the v1alpha routes.
type SSEHandler ¶
type SSEHandler struct {
// contains filtered or unexported fields
}
func (SSEHandler) GetEvents ¶
func (h SSEHandler) GetEvents(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
GetEvents is an endpoint for streaming events and logs from an ESR instance.
func (SSEHandler) Selftest ¶
func (h SSEHandler) Selftest(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
Selftest is a handler to just return 204.
Click to show internal directories.
Click to hide internal directories.