web

package
v0.0.0-...-afc2af5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthHandler

func HealthHandler(w http.ResponseWriter, r *http.Request)

HealthHandler is standart health check for appcop

Types

type Config

type Config struct {
	Listen       string
	Location     string
	QueueSize    int
	WorkersCount int
	MyLeader     string
}

Config specific to web package

type Event

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

Event holds state of parsed fields from marathon EventStream

type SSEHandler

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

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

type Stop

type Stop func()

Stop all channels

func NewHandler

func NewHandler(config Config, marathon marathon.Marathoner, gc *mgc.MarathonGC,
	scoreUpdate chan score.Update) Stop

NewHandler is main initialization function

Jump to

Keyboard shortcuts

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