service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSE

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

SSE defines implements the business logic for Service.

func NewSSE

func NewSSE(c *config.Config, l log.Logger, ch <-chan events.Event, mux *chi.Mux) (SSE, error)

NewSSE returns a service implementation for Service.

func (SSE) HandleSSE

func (s SSE) HandleSSE(w http.ResponseWriter, r *http.Request)

HandleSSE is the GET handler for events

func (SSE) ListenForEvents

func (s SSE) ListenForEvents()

ListenForEvents listens for events

func (SSE) ServeHTTP

func (s SSE) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP fulfills Handler interface

Jump to

Keyboard shortcuts

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