Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound shows the container not found by name. ErrNotFound = errors.New("not found") )
Functions ¶
This section is empty.
Types ¶
type Container ¶ added in v0.28.0
type Container struct {
// contains filtered or unexported fields
}
Container is a wrapper for the NNSResolver. It allows to update resolvers in runtime, without service restarting.
The Container should be used like regular NNSResolver.
func NewContainer ¶ added in v0.28.0
NewContainer is a constructor for the Container.
func (*Container) ResolveCID ¶ added in v0.30.1
ResolveCID looks up the container id by its name via NNS contract. The method calls inline resolver.
type NNSResolver ¶
type NNSResolver struct {
// contains filtered or unexported fields
}
NNSResolver allows to resolve container id by its name.
func NewNNSResolver ¶
func NewNNSResolver(readers []*rpcNNS.ContractReader) *NNSResolver
NewNNSResolver is a constructor for the NNSResolver.
func NewResolver ¶
func NewResolver(ctx context.Context, endpoints []string) (*NNSResolver, error)
NewResolver returns resolver depending on corresponding endpoints.
If endpoint is empty, error will be returned.
func (*NNSResolver) ResolveCID ¶ added in v0.30.1
ResolveCID looks up the container id by its name via NNS contract.
Click to show internal directories.
Click to hide internal directories.