Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Logger *slog.Logger
Store Store
// HTTPClient customizes fetch requests. When private addresses are not
// allowed, New clones the client and replaces unsafe transport dial hooks.
HTTPClient *http.Client
Interval time.Duration
RequestTimeout time.Duration
UserAgent string
IPFSGatewayURL string
BatchSize int
MaxBytes int64
AllowPrivateAddresses bool
}
type Store ¶
type Store interface {
EnsureOffchainMetadataPointers(
ctx context.Context,
now time.Time,
txn types.Txn,
) (int, error)
GetOffchainMetadataFetchBatch(
ctx context.Context,
limit int,
now time.Time,
txn types.Txn,
) ([]models.OffchainMetadata, error)
SetOffchainMetadataFetchResult(
ctx context.Context,
doc *models.OffchainMetadata,
txn types.Txn,
) error
}
Click to show internal directories.
Click to hide internal directories.