package
3.10.13
Repository: https://github.com/micro-community/micro.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
Package kubernetes is a kubernetes router which uses the service name and network to route.
Package mdns is an mdns router.
No description provided by the author
Package static is a static router which returns the service name as the address + port.

# Functions

Address sets router service address.
Cache the routes.
DefaultOptions returns router default options.
filterRoutes finds all the routes for given network and router and returns them.
Gateway sets network gateway.
Id sets Router Id.
LookupAddress sets service to query.
LookupGateway sets gateway address to query.
LookupLink sets the link to query.
LookupNetwork sets network name to query.
LookupRouter sets router id to query.
Network sets router network.
NewLookup creates new query and returns it.
ReadService sets the service to read from the table.
Registry sets the local registry.
WatchService sets what service routes to watch Service is the microservice name.

# Constants

Create is emitted when a new route has been created.
Delete is emitted when an existing route has been deleted.
Error means the router has encountered error.
Running means the router is up and running.
Stopped means the router has been stopped.
Update is emitted when an existing route has been updated.

# Variables

DefaultLink is default network link.
DefaultMetric is default route cost for a local route.
DefaultNetwork is default micro network.
DefaultRouter implementation.
ErrDuplicateRoute is returned when the route already exists.
ErrRouteNotFound is returned when no route was found in the routing table.
ErrWatcherStopped is returned when routing table watcher has been stopped.

# Structs

Event is returned by a call to Next on the watcher.
LookupOptions are routing table query options TODO replace with Filter(Route) bool.
Options are router options.
ReadOptions of router.
Route is a network route.
WatchOptions are table watcher options TODO: expand the options to watch based on other criteria.

# Interfaces

Router is an interface for a routing control plane.
Table is an interface for routing table.
Watcher defines routing table watcher interface Watcher returns updates to the routing table.

# Type aliases

EventType defines routing table event.
LookupOption sets routing table query options.
Option used by the router.
ReadOption of router.
StatusCode defines router status.
WatchOption is used to define what routes to watch in the table.