Documentation ¶
Index ¶
- type MockRouteTable
- func (r *MockRouteTable) Connect(ctx context.Context, target boson.Address) error
- func (r *MockRouteTable) DelRoute(ctx context.Context, dest boson.Address) (err error)
- func (r *MockRouteTable) FindRoute(ctx context.Context, target boson.Address, timeout ...time.Duration) (route []*routetab.Path, err error)
- func (r *MockRouteTable) FindUnderlay(ctx context.Context, target boson.Address) (addr *aurora.Address, err error)
- func (r *MockRouteTable) GetRoute(ctx context.Context, target boson.Address) (routes []*routetab.Path, err error)
- func (r *MockRouteTable) GetTargetNeighbor(ctx context.Context, target boson.Address, limit int) (addresses []boson.Address, err error)
- func (r *MockRouteTable) IsNeighbor(dest boson.Address) (has bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRouteTable ¶ added in v1.0.9
type MockRouteTable struct { RejectAddrList []boson.Address NeighborMap map[string][]boson.Address }
func NewMockRouteTable ¶
func NewMockRouteTable() MockRouteTable
func (*MockRouteTable) FindUnderlay ¶ added in v1.2.0
func (*MockRouteTable) GetTargetNeighbor ¶ added in v1.0.9
func (*MockRouteTable) IsNeighbor ¶ added in v1.0.9
func (r *MockRouteTable) IsNeighbor(dest boson.Address) (has bool)
Click to show internal directories.
Click to hide internal directories.