route

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashResource

func HashResource(resource string) uint64

func MultiReadCloser

func MultiReadCloser(readers ...io.ReadCloser) io.ReadCloser

MultiReadCloser returns a ReaderCloser that's the logical concatenation of the provided input readers. They're read sequentially. Once all inputs have returned EOF, Read will return EOF. If any of the readers return a non-nil, non-EOF error, Read will return that error. MultiReadCloser closes all of the input readers when it is closed. It also closes readers when they finish.

func Multicast

func Multicast(r *http.Request, etcdKey string) (io.ReadCloser, error)

Multicast enables the Ogre Magi to rapidly cast his spells, giving them greater potency.

func MulticastHttp

func MulticastHttp(w http.ResponseWriter, r *http.Request, etcdKey string)

func Route

func Route(r *http.Request, etcdKey string, modulos uint64) (io.ReadCloser, error)

func RouteHttp

func RouteHttp(w http.ResponseWriter, r *http.Request, etcdKey string, modulos uint64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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