registry

package
v0.0.0-...-8b43ef2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry struct {
	sync.RWMutex

	*steno.Logger

	*stats.ActiveApps
	*stats.TopApps
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry(c *config.Config, mbus yagnats.NATSClient) *Registry

func (*Registry) CaptureRoutingRequest

func (r *Registry) CaptureRoutingRequest(x *route.Endpoint, t time.Time)

func (*Registry) Lookup

func (r *Registry) Lookup(uri route.Uri) (*route.Endpoint, bool)

func (*Registry) LookupByPrivateInstanceId

func (r *Registry) LookupByPrivateInstanceId(uri route.Uri, p string) (*route.Endpoint, bool)

func (*Registry) MarshalJSON

func (r *Registry) MarshalJSON() ([]byte, error)

func (*Registry) NumEndpoints

func (r *Registry) NumEndpoints() int

func (*Registry) NumUris

func (registry *Registry) NumUris() int

func (*Registry) PruneStaleDroplets

func (registry *Registry) PruneStaleDroplets()

func (*Registry) Register

func (registry *Registry) Register(uri route.Uri, endpoint *route.Endpoint)

func (*Registry) StartPruningCycle

func (registry *Registry) StartPruningCycle()

func (*Registry) TimeOfLastUpdate

func (r *Registry) TimeOfLastUpdate() time.Time

func (*Registry) Unregister

func (registry *Registry) Unregister(uri route.Uri, endpoint *route.Endpoint)

Jump to

Keyboard shortcuts

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