handlers

package
v0.0.0-...-a52e8f6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KnativePublishHandler

func KnativePublishHandler(version string, 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(msgClientInf messagingv1alpha1client.MessagingV1alpha1Interface) 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