go-libp2p-kad-dht/protocol.go
Steven Allen d440bbf0c4 feat: move options to main package and make internals private (#486)
* feat: move options to main package and make internals private

Rationale:

1. This allows us to make private options for testing.
2. This removes an import for DHT users.
3. This makes options much easier to discover.
4. This makes it possible to make the config/options internals private.

We originally put them in a sub-package to avoid poluting the root namespace,
but that isn't really necessary.

This keeps the old package (for now) to avoid breaking too much.
2020-03-10 16:21:56 -04:00

13 lines
255 B
Go

package dht
import (
"github.com/libp2p/go-libp2p-core/protocol"
)
var (
// ProtocolDHT is the default DHT protocol.
ProtocolDHT protocol.ID = "/ipfs/kad/1.0.0"
// DefualtProtocols spoken by the DHT.
DefaultProtocols = []protocol.ID{ProtocolDHT}
)