eventapi

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPHandler

type HTTPHandler struct {
	// contains filtered or unexported fields
}

HTTPHandler handles SSE event HTTP requests.

func NewHTTPHandler

func NewHTTPHandler(taskStore *task.Store, repoStore *repo.Store) *HTTPHandler

NewHTTPHandler creates a new HTTPHandler.

func (*HTTPHandler) Events

func (h *HTTPHandler) Events(c echo.Context) error

Events handles GET /events as a Server-Sent Events stream. Optionally filtered by ?repo_id=xxx.

func (*HTTPHandler) Register

func (h *HTTPHandler) Register(g *echo.Group)

Register adds the endpoints to the provided Echo router group.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL