package
2.0.9+incompatible
Repository: https://github.com/threefoldtech/0-fs.git
Documentation: pkg.go.dev
# Functions
HexToBytes converts a hexstring to byte array.
Merge merge multiple routers.
NewConfig loads config from reader, expecting yaml formatted config.
NewConfigFromFile loads config from yaml file.
NewDestination parse and validate destination.
NewRange parse range from string.
NewScanPool initialize a new scan pool.
# Variables
DefaultPoolFactory default pool implementation.
ErrInvalidRange when range syntax is invalid.
ErrNotFound when key can't be found in a pool.
ErrNotRoutable when pool can't find a match for this hash.
ErrPoolNotFound when table reference a pool that is not configured.
ErrUnknownScheme is returned when a not supported scheme is used.
SupportedScheme list of supported url scheme.
# Type aliases
Errors holds many errors at once, suitable for config validation.
PoolConfig is a map from hash-range to destination.
PoolFactory defines a pool factory method.