Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.27.2
type Container struct {
// contains filtered or unexported fields
}
Container is a wrapper for the Resolver. It allows to update resolvers in runtime, without service restarting.
The Container should be used like regular Resolver.
func NewContainer ¶ added in v0.27.2
NewContainer is a constructor for the Container.
type NNSResolver ¶
type NNSResolver struct {
// contains filtered or unexported fields
}
NNSResolver allows to resolve container id by its name.
func NewNNSResolver ¶
func NewNNSResolver(reader *rpcNNS.ContractReader) *NNSResolver
NewNNSResolver is a constructor for the NNSResolver.
type NoOpResolver ¶ added in v0.27.2
type NoOpResolver struct { }
NoOpResolver is a special resolver for situation when NNSResolver can't be created.
func NewNoOpResolver ¶ added in v0.27.2
func NewNoOpResolver() *NoOpResolver
NewNoOpResolver is a constructor for the NoOpResolver.
func (*NoOpResolver) Resolve ¶ added in v0.27.2
Resolve always returns ErrNotFound.
type Resolver ¶ added in v0.25.0
Resolver allows to map container ID by container name.
func NewResolver ¶
NewResolver returns resolver depending on corresponding endpoint.
If endpoint is empty, NoOpResolver will be returned.