forked from TrueCloudLab/frostfs-sdk-go
[#179] Rename resolver
package to ns
`resolver` isn't suitable name for the package with NeoFS name system functionality. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
75a5b6588d
commit
55283d3c91
6 changed files with 7 additions and 7 deletions
22
ns/doc.go
Normal file
22
ns/doc.go
Normal file
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
Package ns provides functionality of NeoFS name system.
|
||||
|
||||
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)
|
||||
// ...
|
||||
|
||||
*/
|
||||
package ns
|
Loading…
Add table
Add a link
Reference in a new issue