registry

package
v0.0.0-...-628bcb8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CFRegistry

type CFRegistry struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewCFRegistry

func NewCFRegistry(c *config.Config, mbus yagnats.NATSClient) *CFRegistry

func (*CFRegistry) Lookup

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

func (*CFRegistry) LookupByPrivateInstanceId

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

func (*CFRegistry) MarshalJSON

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

func (*CFRegistry) NumEndpoints

func (r *CFRegistry) NumEndpoints() int

func (*CFRegistry) NumUris

func (registry *CFRegistry) NumUris() int

func (*CFRegistry) PruneStaleDroplets

func (registry *CFRegistry) PruneStaleDroplets()

func (*CFRegistry) Register

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

func (*CFRegistry) StartPruningCycle

func (registry *CFRegistry) StartPruningCycle()

func (*CFRegistry) TimeOfLastUpdate

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

func (*CFRegistry) Unregister

func (registry *CFRegistry) 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