router

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HEADERS_FISSION_FUNCTION_PREFIX = "Fission-Function"
)

Variables

This section is empty.

Functions

func HeadersToMetadata added in v0.5.0

func HeadersToMetadata(prefix string, headers http.Header) *metav1.ObjectMeta

func MetadataToHeaders added in v0.5.0

func MetadataToHeaders(prefix string, meta *metav1.ObjectMeta, request *http.Request)

func NewMutableRouter

func NewMutableRouter(handler *mux.Router) *mutableRouter

func Start

func Start(port int, executorUrl string)

Types

type HTTPTriggerSet

type HTTPTriggerSet struct {
	// contains filtered or unexported fields
}

func (HTTPTriggerSet) ServeHTTP

func (mr HTTPTriggerSet) ServeHTTP(responseWriter http.ResponseWriter, request *http.Request)

type RetryingRoundTripper

type RetryingRoundTripper struct {
	// contains filtered or unexported fields
}

A layer on top of http.DefaultTransport, with retries.

func (RetryingRoundTripper) RoundTrip

func (rrt RetryingRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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