2022-03-18 08:32:00 +00:00
|
|
|
/*
|
2022-04-12 08:25:18 +00:00
|
|
|
Package ns provides functionality of NeoFS name system.
|
2022-03-18 08:32:00 +00:00
|
|
|
|
|
|
|
DNS type is designed to resolve NeoFS-related names using Domain Name System:
|
|
|
|
const containerName = "some-container"
|
|
|
|
|
|
|
|
var dns DNS
|
|
|
|
|
|
|
|
containerID, err := dns.ResolveContainerName(containerName)
|
|
|
|
// ...
|
|
|
|
|
|
|
|
NNS type is designed to resolve NeoFS-related names using Neo Name Service:
|
|
|
|
var nns NNS
|
|
|
|
|
|
|
|
err := nns.Dial(nnsServerAddress)
|
|
|
|
// ...
|
|
|
|
|
|
|
|
containerID, err := nns.ResolveContainerName(containerName)
|
|
|
|
// ...
|
|
|
|
|
|
|
|
*/
|
2022-04-12 08:25:18 +00:00
|
|
|
package ns
|