routertest

package
v0.0.0-...-1b7c243 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrForcedFailure = errors.New("Forced failure")
View Source
var FakeRouter = newFakeRouter()
View Source
var HCRouter = hcRouter{/* contains filtered or unexported fields */}
View Source
var HostEquals check.Checker = &urlHostChecker{
	check.CheckerInfo{Name: "HostEquals", Params: []string{"obtained", "expected"}},
}
View Source
var OptsRouter = optsRouter{

	Opts: make(map[string]map[string]string),
	// contains filtered or unexported fields
}
View Source
var TLSRouter = tlsRouter{

	Certs: make(map[string]string),
	Keys:  make(map[string]string),
	// contains filtered or unexported fields
}

Functions

This section is empty.

Types

type RouterSuite

type RouterSuite struct {
	Router            router.Router
	SetUpSuiteFunc    func(c *check.C)
	SetUpTestFunc     func(c *check.C)
	TearDownSuiteFunc func(c *check.C)
	TearDownTestFunc  func(c *check.C)
}

func (*RouterSuite) SetUpSuite

func (s *RouterSuite) SetUpSuite(c *check.C)

func (*RouterSuite) SetUpTest

func (s *RouterSuite) SetUpTest(c *check.C)

func (*RouterSuite) TearDownSuite

func (s *RouterSuite) TearDownSuite(c *check.C)

func (*RouterSuite) TearDownTest

func (s *RouterSuite) TearDownTest(c *check.C)

func (*RouterSuite) TestCNames

func (s *RouterSuite) TestCNames(c *check.C)

func (*RouterSuite) TestRemoveBackendAfterSwap

func (s *RouterSuite) TestRemoveBackendAfterSwap(c *check.C)

func (*RouterSuite) TestRemoveBackendKeepsInRouter

func (s *RouterSuite) TestRemoveBackendKeepsInRouter(c *check.C)

func (*RouterSuite) TestRemoveBackendWithCName

func (s *RouterSuite) TestRemoveBackendWithCName(c *check.C)

func (*RouterSuite) TestRemoveBackendWithoutRemoveRoutes

func (s *RouterSuite) TestRemoveBackendWithoutRemoveRoutes(c *check.C)

func (*RouterSuite) TestRouteAddBackendAndRoute

func (s *RouterSuite) TestRouteAddBackendAndRoute(c *check.C)

func (*RouterSuite) TestRouteAddBackendOptsAndRoute

func (s *RouterSuite) TestRouteAddBackendOptsAndRoute(c *check.C)

func (*RouterSuite) TestRouteAddDupBackend

func (s *RouterSuite) TestRouteAddDupBackend(c *check.C)

func (*RouterSuite) TestRouteAddDupCName

func (s *RouterSuite) TestRouteAddDupCName(c *check.C)

func (*RouterSuite) TestRouteAddRouteInvalidBackend

func (s *RouterSuite) TestRouteAddRouteInvalidBackend(c *check.C)

func (*RouterSuite) TestRouteAddRoutes

func (s *RouterSuite) TestRouteAddRoutes(c *check.C)

func (*RouterSuite) TestRouteAddRoutesIgnoreRepeated

func (s *RouterSuite) TestRouteAddRoutesIgnoreRepeated(c *check.C)

func (*RouterSuite) TestRouteRemoveRouteAndBackend

func (s *RouterSuite) TestRouteRemoveRouteAndBackend(c *check.C)

func (*RouterSuite) TestRouteRemoveRoutes

func (s *RouterSuite) TestRouteRemoveRoutes(c *check.C)

func (*RouterSuite) TestRouteRemoveRoutesIgnoreNonExisting

func (s *RouterSuite) TestRouteRemoveRoutesIgnoreNonExisting(c *check.C)

func (*RouterSuite) TestSetCNameInvalidBackend

func (s *RouterSuite) TestSetCNameInvalidBackend(c *check.C)

func (*RouterSuite) TestSetCNameSubdomainError

func (s *RouterSuite) TestSetCNameSubdomainError(c *check.C)

func (*RouterSuite) TestSetHealthcheck

func (s *RouterSuite) TestSetHealthcheck(c *check.C)

func (*RouterSuite) TestSetUnsetCName

func (s *RouterSuite) TestSetUnsetCName(c *check.C)

func (*RouterSuite) TestSwap

func (s *RouterSuite) TestSwap(c *check.C)

func (*RouterSuite) TestSwapTwice

func (s *RouterSuite) TestSwapTwice(c *check.C)

type URLList

type URLList []*url.URL

func (URLList) Len

func (l URLList) Len() int

func (URLList) Less

func (l URLList) Less(i, j int) bool

func (URLList) Swap

func (l URLList) Swap(i, j int)

Jump to

Keyboard shortcuts

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