15 lines
308 B
Go
15 lines
308 B
Go
|
package routinghelpers
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
)
|
||
|
|
||
|
// TODO: Consider moving this to the routing package?
|
||
|
|
||
|
// Bootstrap is an interface that should be implemented by any routers wishing
|
||
|
// to be bootstrapped.
|
||
|
type Bootstrap interface {
|
||
|
// Bootstrap bootstraps the router.
|
||
|
Bootstrap(ctx context.Context) error
|
||
|
}
|