Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthHandler ¶
func HealthHandler(w http.ResponseWriter, _ *http.Request)
func NewHandler ¶ added in v0.4.0
func NewHandler(config Config, marathon marathon.Marathoner, serviceOperations service.ServiceRegistry) (Handler, Stop)
Types ¶
type EventHandler ¶
type EventHandler struct {
// contains filtered or unexported fields
}
func (*EventHandler) Handle ¶
func (h *EventHandler) Handle(w http.ResponseWriter, r *http.Request)
Handle is responsible for accepting events and passing them to event queue for async processing. It always returns 2xx even if requests are malformed to prevent marathon from suspending subscription. Processed events must be smaller than maxEventSize and must contain supported event type.
Click to show internal directories.
Click to hide internal directories.