sse

package
v1.1.1-0...-b95d95f Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Retries      int
	RetryBackoff time.Interval
}

type Handler

type Handler func(w http.ResponseWriter, r *http.Request)

type HandlerSSE

type HandlerSSE struct {
	Streamer *marathon.Streamer
	// contains filtered or unexported fields
}

HandlerSSE defines handler for marathon event stream, opening and closing subscription

type Stop

type Stop func()

func NewHandler

func NewHandler(config Config, webConfig web.Config, marathon marathon.Marathoner, serviceOperations service.Registry) (Stop, error)

Jump to

Keyboard shortcuts

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