1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

move table

This commit is contained in:
Asim Aslam 2019-07-10 07:56:18 +01:00
parent c36107e811
commit 9955ed2034

View File

@ -25,12 +25,12 @@ const (
// Router is an interface for a routing control plane // Router is an interface for a routing control plane
type Router interface { type Router interface {
// Router provides a routing table
table.Table
// Init initializes the router with options // Init initializes the router with options
Init(...Option) error Init(...Option) error
// Options returns the router options // Options returns the router options
Options() Options Options() Options
// Table returns the routing table
table.Table
// Advertise advertises routes to the network // Advertise advertises routes to the network
Advertise() (<-chan *Advert, error) Advertise() (<-chan *Advert, error)
// Process processes incoming adverts // Process processes incoming adverts