web

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2016 License: Apache-2.0 Imports: 11 Imported by: 6

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 Config added in v0.4.0

type Config struct {
	Listen       string
	QueueSize    int
	WorkersCount int
	MaxEventSize int64
}

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.

type Handler added in v0.4.0

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

type Stop added in v0.4.0

type Stop func()

Jump to

Keyboard shortcuts

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