marathon-consul: github.com/allegro/marathon-consul/sse Index | Files

package sse

import "github.com/allegro/marathon-consul/sse"

Index

Package Files

config.go sse.go sse_handler.go

type Config Uses

type Config struct {
    Retries      int
    RetryBackoff time.Interval
}

type Handler Uses

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

type HandlerSSE Uses

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

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

type Stop Uses

type Stop func()

func NewHandler Uses

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

Package sse imports 11 packages (graph) and is imported by 2 packages. Updated 2019-08-16. Refresh now. Tools for package owners.