Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NameFormatResolver ¶
type NameFormatResolver struct {
// contains filtered or unexported fields
}
NameFormatResolver implements a name resolution component that formats service names according to a configurable pattern.
func (*NameFormatResolver) Close ¶
func (r *NameFormatResolver) Close() error
Close implements io.Closer
func (*NameFormatResolver) GetComponentMetadata ¶
func (r *NameFormatResolver) GetComponentMetadata() metadata.MetadataMap
GetComponentMetadata returns the metadata information for the component.
func (*NameFormatResolver) Init ¶
Init initializes the name format resolver with the given metadata.
func (*NameFormatResolver) ResolveID ¶
func (r *NameFormatResolver) ResolveID(ctx context.Context, req nr.ResolveRequest) (string, error)
ResolveID resolves a service ID to an address using the configured format.
Click to show internal directories.
Click to hide internal directories.