package proxy

import "github.com/coreos/etcd/proxy"

Index

Functions

func NewHandler

func NewHandler(t *http.Transport, urlsFunc GetProxyURLs) http.Handler

func NewReadonlyHandler

func NewReadonlyHandler(hdlr http.Handler) http.Handler

Types

type GetProxyURLs

type GetProxyURLs func() []string

GetProxyURLs is a function which should return the current set of URLs to which client requests should be proxied. This function will be queried periodically by the proxy Handler to refresh the set of available backends.

Source Files

director.go proxy.go reverse.go

Version
v0.5.0-alpha.1
Published
Oct 31, 2014
Platform
linux/amd64
Imports
8 packages
Last checked
27 minutes ago

Tools for package owners.