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 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
Click to show internal directories.
Click to hide internal directories.