@cryptotaxi247 / kubo / commits / 7b9225113

go-ipfs-config: doc: add a bit of documentation.

Steven Allen committed Apr 6, 2020 at 17:32 UTC 7b9225113ff63e4fba08c81c6372a52566181914
1 file changed +4 -2
config/routing.go
+4 -2
@@ -3,9 +3,11 @@ package config
3 // Routing defines configuration options for libp2p routing
4 type Routing struct {
5 // Type sets default daemon routing mode.
6 + //
7 + // Can be one of "dht", "dhtclient", "dhtserver", "none", or unset.
8 Type string
9
8 - // PrivateType sets the routing mode for private networks. If unset,
9 - // Type will be used.
10 + // PrivateType sets the routing mode for private networks. Can take the
11 + // same values as Type and defaults to Type if unset.
12 PrivateType string
13 }