Versions in this module Expand all Collapse all v0 v0.0.1 Aug 17, 2020 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 InitializeKeyspace(ctx context.Context, pub Publisher, pins pin.Pinner, key ci.PrivKey) error + func IpnsDsKey(id peer.ID) ds.Key + func PkKeyForID(id peer.ID) string + func PublishEntry(ctx context.Context, r routing.ValueStore, ipnskey string, rec *pb.IpnsEntry) 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.IpnsEntry) 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 IpnsPublisher struct + func NewIpnsPublisher(route routing.ValueStore, ds ds.Datastore) *IpnsPublisher + func (p *IpnsPublisher) GetPublished(ctx context.Context, id peer.ID, checkRouting bool) (*pb.IpnsEntry, error) + func (p *IpnsPublisher) ListPublished(ctx context.Context) (map[peer.ID]*pb.IpnsEntry, error) + func (p *IpnsPublisher) Publish(ctx context.Context, k ci.PrivKey, value path.Path) error + func (p *IpnsPublisher) PublishWithEOL(ctx context.Context, k ci.PrivKey, value path.Path, eol time.Time) error + type IpnsResolver struct + func NewIpnsResolver(route routing.ValueStore) *IpnsResolver + func (r *IpnsResolver) Resolve(ctx context.Context, name string, options ...opts.ResolveOpt) (path.Path, error) + func (r *IpnsResolver) 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