Documentation ¶
Index ¶
- type RegistryInterface
- type RouteRegistry
- func (r *RouteRegistry) Lookup(uri route.Uri) *route.Pool
- func (r *RouteRegistry) MarshalJSON() ([]byte, error)
- func (r *RouteRegistry) NumEndpoints() int
- func (registry *RouteRegistry) NumUris() int
- func (r *RouteRegistry) Register(uri route.Uri, endpoint *route.Endpoint)
- func (r *RouteRegistry) StartPruningCycle()
- func (r *RouteRegistry) StopPruningCycle()
- func (r *RouteRegistry) TimeOfLastUpdate() time.Time
- func (r *RouteRegistry) Unregister(uri route.Uri, endpoint *route.Endpoint)
- type Trie
- func (r *Trie) Delete(uri route.Uri) bool
- func (r *Trie) EachNodeWithPool(f func(*Trie))
- func (r *Trie) EndpointCount() int
- func (r *Trie) Find(uri route.Uri) (*route.Pool, bool)
- func (r *Trie) Insert(uri route.Uri, value *route.Pool) *Trie
- func (r *Trie) MatchUri(uri route.Uri) (*route.Pool, bool)
- func (r *Trie) PoolCount() int
- func (r *Trie) PruneDeadLeaves()
- func (r *Trie) Snip()
- func (r *Trie) ToMap() map[route.Uri]*route.Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegistryInterface ¶
type RouteRegistry ¶
func NewRouteRegistry ¶
func NewRouteRegistry(c *config.Config, mbus yagnats.NATSConn) *RouteRegistry
func (*RouteRegistry) MarshalJSON ¶
func (r *RouteRegistry) MarshalJSON() ([]byte, error)
func (*RouteRegistry) NumEndpoints ¶
func (r *RouteRegistry) NumEndpoints() int
func (*RouteRegistry) NumUris ¶
func (registry *RouteRegistry) NumUris() int
func (*RouteRegistry) Register ¶
func (r *RouteRegistry) Register(uri route.Uri, endpoint *route.Endpoint)
func (*RouteRegistry) StartPruningCycle ¶
func (r *RouteRegistry) StartPruningCycle()
func (*RouteRegistry) StopPruningCycle ¶
func (r *RouteRegistry) StopPruningCycle()
func (*RouteRegistry) TimeOfLastUpdate ¶
func (r *RouteRegistry) TimeOfLastUpdate() time.Time
func (*RouteRegistry) Unregister ¶
func (r *RouteRegistry) Unregister(uri route.Uri, endpoint *route.Endpoint)
type Trie ¶
func (*Trie) EachNodeWithPool ¶
func (*Trie) EndpointCount ¶
func (*Trie) PruneDeadLeaves ¶
func (r *Trie) PruneDeadLeaves()
Click to show internal directories.
Click to hide internal directories.