Versions in this module Expand all Collapse all v0 v0.7.1 Sep 14, 2022 v0.7.0 Jul 8, 2022 Changes in this version + var ErrInvalidTLD = errors.New("invalid TLD") + var ErrResolverChainEmpty = errors.New("resolver chain empty") + var ErrTLDTooLong = fmt.Errorf("TLD exceeds maximum length of %d characters", maxTLDLength) + type Address = swarm.Address + type CloseError struct + func (me CloseError) Error() string + type ConnectionConfig struct + Address string + Endpoint string + TLD string + func ParseConnectionStrings(cstrs []string) ([]*ConnectionConfig, error) + type Interface interface + Resolve func(url string) (Address, error) + type MultiResolver struct + ForceDefault bool + func NewMultiResolver(opts ...Option) *MultiResolver + func (mr *MultiResolver) ChainCount(tld string) int + func (mr *MultiResolver) Close() error + func (mr *MultiResolver) GetChain(tld string) []Interface + func (mr *MultiResolver) PopResolver(tld string) error + func (mr *MultiResolver) PushResolver(tld string, r Interface) error + func (mr *MultiResolver) Resolve(name string) (Address, error) + type Option func(*MultiResolver) + func WithForceDefault() Option