-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
// Package schema defines the makeup of an advertisement. An advertisement is | ||
// Package schema defines the makeup of an advertisement. An advertisement is | ||
// used to inform an indexer that there are updates to a provider's content. | ||
// The IsRm and Entries fields determine how the indexer handles | ||
// the advertisement. The following table describes this: | ||
// The IsRm and Entries fields determine how the indexer handles the | ||
// advertisement, as described by the following table: | ||
// | ||
// IsRm Entries Action | ||
// | ||
// ------+-----------+------------------------------------ | ||
// false | NoEntries | Update metadata | ||
// false | data | Update metadata and index entries | ||
// true | NoEntries | Delete content with context ID | ||
// true | data | Delete specific multihash indexes * | ||
// true | data | Delete content with context ID (ignore entries) | ||
// | ||
// * Deleting entries still requires a context ID, because a multihash can map | ||
// to multiple contextID/metadata values. | ||
// When removing content (IsRm true) the metadata and entries are ignored. An | ||
// advertisement that removes content cannot have extended provider | ||
// information. | ||
// | ||
// When removing content (IsRm true) the metadata is ignored. | ||
// | ||
// All advertisements update the provider's addresses. To create an | ||
// All advertisements update the provider's addresses. To create an | ||
// advertisement that only updates a provider's address, create an | ||
// advertisement to remove content using a context ID that is not used. | ||
// advertisement that contains no metadata and no entries. | ||
package schema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters