Versions in this module Expand all Collapse all v0 v0.0.2 Oct 11, 2021 v0.0.1 Oct 11, 2021 Changes in this version + const DefaultRecordEOL + const DefaultResolverCacheTTL + var ErrPublishFailed = errors.New("could not publish name") + var ErrResolveFailed = errors.New("could not resolve name") + var ErrResolveRecursion = errors.New("could not resolve name (recursion limit exceeded)") + func Dms3NsDsKey(id peer.ID) ds.Key + func InitializeKeyspace(ctx context.Context, pub Publisher, pins pin.Pinner, key ci.PrivKey) error + func PkKeyForID(id peer.ID) string + func PublishEntry(ctx context.Context, r routing.ValueStore, dms3nskey string, ...) error + func PublishPublicKey(ctx context.Context, r routing.ValueStore, k string, pubk ci.PubKey) error + func PutRecordToRouting(ctx context.Context, r routing.ValueStore, k ci.PubKey, entry *pb.Dms3NsEntry) error + type DNSResolver struct + func NewDNSResolver() *DNSResolver + func (r *DNSResolver) Resolve(ctx context.Context, name string, options ...opts.ResolveOpt) (path.Path, error) + func (r *DNSResolver) ResolveAsync(ctx context.Context, name string, options ...opts.ResolveOpt) <-chan Result + type Dms3NsPublisher struct + func NewDms3NsPublisher(route routing.ValueStore, ds ds.Datastore) *Dms3NsPublisher + func (p *Dms3NsPublisher) GetPublished(ctx context.Context, id peer.ID, checkRouting bool) (*pb.Dms3NsEntry, error) + func (p *Dms3NsPublisher) ListPublished(ctx context.Context) (map[peer.ID]*pb.Dms3NsEntry, error) + func (p *Dms3NsPublisher) Publish(ctx context.Context, k ci.PrivKey, value path.Path) error + func (p *Dms3NsPublisher) PublishWithEOL(ctx context.Context, k ci.PrivKey, value path.Path, eol time.Time) error + type Dms3NsResolver struct + func NewDms3NsResolver(route routing.ValueStore) *Dms3NsResolver + func (r *Dms3NsResolver) Resolve(ctx context.Context, name string, options ...opts.ResolveOpt) (path.Path, error) + func (r *Dms3NsResolver) ResolveAsync(ctx context.Context, name string, options ...opts.ResolveOpt) <-chan Result + type LookupTXTFunc func(name string) (txt []string, err error) + type NameSystem interface + func NewNameSystem(r routing.ValueStore, ds ds.Datastore, cachesize int) NameSystem + type ProquintResolver struct + func (r *ProquintResolver) Resolve(ctx context.Context, name string, options ...opts.ResolveOpt) (path.Path, error) + type Publisher interface + Publish func(ctx context.Context, name ci.PrivKey, value path.Path) error + PublishWithEOL func(ctx context.Context, name ci.PrivKey, value path.Path, eol time.Time) error + type Resolver interface + Resolve func(ctx context.Context, name string, options ...opts.ResolveOpt) (value path.Path, err error) + ResolveAsync func(ctx context.Context, name string, options ...opts.ResolveOpt) <-chan Result + type Result struct + Err error + Path path.Path