Skip to content
Snippets Groups Projects
client_interface.go 456 B
Newer Older
  • Learn to ignore specific revisions
  • package routingtable
    
    import (
    	"github.com/bio-routing/bio-rd/net"
    	"github.com/bio-routing/bio-rd/route"
    )
    
    // RouteTableClient is the interface that every type of RIB must implement
    type RouteTableClient interface {
    
    	AddPath(net.Prefix, *route.Path) error
    
    	RemovePath(net.Prefix, *route.Path) bool
    	UpdateNewClient(RouteTableClient) error
    
    Oliver Herms's avatar
    Oliver Herms committed
    	Register(RouteTableClient)
    
    	RegisterWithOptions(RouteTableClient, ClientOptions)
    
    Oliver Herms's avatar
    Oliver Herms committed
    	Unregister(RouteTableClient)