registry

package
v0.0.0-...-4b17972 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2013 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, + 1 more Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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