router

package
v0.0.0-...-6c4e492 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2014 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, + 1 more Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DrainTimeout = errors.New("router: Drain timeout")

Functions

This section is empty.

Types

type Router

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

func NewRouter

func NewRouter(cfg *config.Config, p proxy.Proxy, mbusClient *yagnats.Client, r *registry.RouteRegistry, v varz.Varz,
	logCounter *vcap.LogCounter) (*Router, error)

func (*Router) Drain

func (r *Router) Drain(drainTimeout time.Duration) error

func (*Router) HandleGreetings

func (r *Router) HandleGreetings()

func (*Router) RegisterComponent

func (r *Router) RegisterComponent()

func (*Router) Run

func (r *Router) Run() <-chan error

func (*Router) ScheduleFlushApps

func (r *Router) ScheduleFlushApps()

func (*Router) SendStartMessage

func (r *Router) SendStartMessage()

func (*Router) Stop

func (r *Router) Stop()

func (*Router) SubscribeRegister

func (r *Router) SubscribeRegister()

func (*Router) SubscribeUnregister

func (r *Router) SubscribeUnregister()

Jump to

Keyboard shortcuts

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