routinghelpers

package module
v0.0.0-...-2996bdd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 10 Imported by: 0

README

go-libp2p-dns-router

GoDoc Coverage Status Build Status Discourse posts

A libp2p router that uses DNS.

Documenation

See https://godoc.org/github.com/ipfs/go-libp2p-dns-router.

Contribute

Feel free to join in. All welcome. Open an issue!

This repository falls under the IPFS Code of Conduct.

Want to hack on IPFS?

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSValueStore

type DNSValueStore struct {
}

DNS uses domains for record storage

func (*DNSValueStore) GetValue

func (dnsRouter *DNSValueStore) GetValue(ctx context.Context, key string, opts ...routing.Option) ([]byte, error)

Get value from FQDN's TXT TODO: opts handling

func (*DNSValueStore) PutValue

func (dnsRouter *DNSValueStore) PutValue(ctx context.Context, key string, value []byte, opts ...routing.Option) error

Put value to FQDN/nameserver for storage

func (*DNSValueStore) SearchValue

func (dnsRouter *DNSValueStore) SearchValue(ctx context.Context, key string, opts ...routing.Option) (<-chan []byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL