Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPriority ¶ added in v0.14.0
GetPriority extract priority from config params. Small numbers represent more important routers.
func NewParamNeededErr ¶ added in v0.14.0
Types ¶
type ParamNeededError ¶ added in v0.14.0
func (*ParamNeededError) Error ¶ added in v0.14.0
func (e *ParamNeededError) Error() string
type ProvideMany ¶ added in v0.14.0
type ProvideManyWrapper ¶ added in v0.14.0
type ProvideManyWrapper struct {
// contains filtered or unexported fields
}
func (*ProvideManyWrapper) ProvideMany ¶ added in v0.14.0
func (pmw *ProvideManyWrapper) ProvideMany(ctx context.Context, keys []multihash.Multihash) error
func (*ProvideManyWrapper) Ready ¶ added in v0.14.0
func (pmw *ProvideManyWrapper) Ready() bool
Ready is ready if all providers are ready
type RouterTypeNotFoundError ¶ added in v0.14.0
type RouterTypeNotFoundError struct {
RouterType string
}
func (*RouterTypeNotFoundError) Error ¶ added in v0.14.0
func (e *RouterTypeNotFoundError) Error() string
type Tiered ¶ added in v0.14.0
type Tiered struct {
routinghelpers.Tiered
}
Tiered is a routing Tiered implementation providing some extra methods to fill some special use cases when initializing the client.
func (Tiered) ProvideMany ¶ added in v0.14.0
func (ds Tiered) ProvideMany() ProvideMany
ProvideMany returns a ProvideMany implementation including all Routers that implements ProvideMany
type TieredRouter ¶ added in v0.14.0
type TieredRouter interface { routing.Routing ProvideMany() ProvideMany }
Click to show internal directories.
Click to hide internal directories.