handler

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: MIT, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFunctionDispatcher

func NewFunctionDispatcher(defaultPort uint16) http.Handler

NewFunctionDispatcher returns a new http handler

Types

type FunctionDispatcher

type FunctionDispatcher struct {
	DefaultPort uint16
}

FunctionDispatcher is an HTTP handler which dispatch function calls accepts something like this: /api/v0/invoke/<my-function-id>

func (*FunctionDispatcher) ServeHTTP

func (d *FunctionDispatcher) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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