Documentation
¶
Index ¶
- Variables
- type Config
- type Loader
- func (l *Loader) GetByMetadata(ctx context.Context, metadata model.ManifestMetadata) (*model.ManifestDocument, error)
- func (l *Loader) GetByNetworkID(ctx context.Context, networkID string) (*model.ManifestDocument, error)
- func (l *Loader) GetBySubscriberID(ctx context.Context, subscriberID string) (*model.ManifestDocument, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilCache = errors.New("cache implementation cannot be nil") ErrNilMetaRegistry = errors.New("registry metadata lookup cannot be nil") // ErrNoManifestPublished is returned by GetBySubscriberID when the registry returns // metadata for the subscriber but carries no manifestUrl — the participant has not yet // published a node manifest. Callers should treat this as a graceful absence, not a fault. ErrNoManifestPublished = errors.New("subscriber has not published a node manifest") )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
CacheTTL time.Duration
FetchTimeout time.Duration
DisableCache bool
ForceRefreshOnStart bool
SkipSignatureVerification bool
}
Config controls fetch and cache behavior for the manifest loader.
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Loader fetches, verifies, caches, and returns manifests.
func New ¶
func New(ctx context.Context, cache definition.Cache, registry definition.RegistryMetadataLookup, cfg *Config) (*Loader, func() error, error)
func (*Loader) GetByMetadata ¶
func (l *Loader) GetByMetadata(ctx context.Context, metadata model.ManifestMetadata) (*model.ManifestDocument, error)
func (*Loader) GetByNetworkID ¶
func (*Loader) GetBySubscriberID ¶ added in v1.8.0
Click to show internal directories.
Click to hide internal directories.