handlers

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KnativePublishHandler

func KnativePublishHandler(knativeLib *knative.KnativeLib, knativePublisher *publisher.KnativePublisher,
	tracer *trace.Tracer, opts *opts.Options) http.HandlerFunc

KnativePublishHandler returns an http.HandlerFunc instance to handle publish requests

func ReadinessProbeHandler

func ReadinessProbeHandler() http.HandlerFunc

ReadinessProbeHandler of the Knative PublishApplication

func WithRequestSizeLimiting

func WithRequestSizeLimiting(next http.HandlerFunc, limit int64) http.HandlerFunc

WithRequestSizeLimiting creates a new request size limiting HandlerFunc

Types

type Message

type Message struct {
	Headers map[string][]string `json:"headers,omitempty"`
	Payload api.AnyValue        `json:"payload,omitempty"`
}

Message represents the Knative publish message

Jump to

Keyboard shortcuts

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