# Functions
CheckAndSetUlimit raises the file descriptor limit.
EncodeCID - Hash with SHA-256 and encode as a multihash.
EncodeMultihash - sha256 encode.
ExtractIDFromPointer Certain pointers, such as moderators, contain a peerID.
FormatRFC3339PB returns the given `google_protobuf.Timestamp` as a RFC3339 formatted string.
GetOrderQuantity - return the specified item quantity.
GetSelectedSku - return the specified item SKU.
NewErrOutOfInventory - return out of inventory err with available inventory.
NormalizeCurrencyCode standardizes the format for the given currency code.
ParseContractForListing - return the listing identified by the hash from the contract.
SameSku - check if the variants have the same SKU.
ValidateProfile - validate fetched profile.
ValidateRating - validates rating for API GET and Post/Update.
# Constants
AboutMaxCharacters - max length for about.
ChatMessageMaxCharacters - limit for chat msg.
ChatSubjectMaxCharacters - limit for chat subject.
CodeMaxCharacters - max chars for a code.
ConfirmationsPerHour is temporary until the Wallet interface has Attributes() to provide this value.
CouponTitleMaxCharacters - max length of a coupon title.
CryptocurrencyPurchasePaymentAddressMaxLength - max permissible length for an address.
DefaultCoinDivisibility - decimals for price.
DefaultPointerPrefixLength - default ipfs pointer prefix.
DescriptionMaxCharacters - max length for description.
EscrowReleaseSize - size in bytes for escrow op.
EscrowTimeout - escrow timeout in hours.
FilenameMaxCharacters - max filename size.
KeyCachePrefix - cache prefix for public key.
ListingVersion - current listing version.
MaxCategories - max permitted categories.
MaxCountryCodes - max country codes.
MaxListItems - max items in a listing.
Constants for validation.
MaxTags - max permitted tags.
PolicyMaxCharacters - max length for policy.
Constants for validation.
Constants for validation.
Constants for validation.
PriceModifierMax = max price modifier.
PriceModifierMin - min price modifier.
RatingMax - max rating.
RatingMin - min raring.
ReviewMaxCharacters - max size for review.
SentenceMaxCharacters - max chars for sentence.
ShortDescriptionLength - min length for description.
SlugBuffer - buffer size for slug.
TitleMaxCharacters - max size for title.
URLMaxCharacters - max length for URL.
WordMaxCharacters - max chars for word.
# Variables
DisputeWg - waitgroup for disputes.
ErrCaseNotFound - case not found err.
ErrCloseFailureCaseExpired - tried closing expired case err.
ErrCloseFailureNoOutpoints indicates when a dispute cannot be closed due to neither party including outpoints with their dispute.
ErrCryptocurrencyListingCoinTypeRequired - missing coinType err.
ErrCryptocurrencyPurchasePaymentAddressRequired - missing payment address err.
ErrCryptocurrencyPurchasePaymentAddressTooLong - invalid payment address.
ErrCryptocurrencySkuQuantityInvalid - invalid sku qty err.
ErrFulfillCryptocurrencyTXIDNotFound - missing txn id err.
ErrFulfillCryptocurrencyTXIDTooLong - invalid txn id err.
ErrFulfillIncorrectDeliveryType - incorrect delivery type err.
ErrInventoryNotFoundForSlug - inventory not found error.
ErrListingAlreadyExists - duplicate listing err.
ErrListingCoinDivisibilityIncorrect - coin divisibility err.
ErrListingDoesNotExist - non-existent listing err.
ErrNoListings - no listing error FIXME : This is not used anywhere.
ErrOpenFailureOrderExpired - tried disputing expired order err.
ErrorProfileNotFound - profile not found error.
ErrPrematureReleaseOfTimedoutEscrowFunds - custom err for premature escrow funds release.
ErrPriceCalculationRequiresExchangeRates - exchange rates dependency err.
ErrPurchaseUnknownListing - unavailable listing err.
EscrowTimeLockedError - custom err for time locked escrow.
= false.
MaxTXIDSize - max length for order txnID.
ModeratorPointerID moderator ipfs multihash.
Node - ob node.
OfflineMessageWaitGroup - used for offline msgs.
PublishLock seedLock - Unpin the current node repo, re-add it, then publish to IPNS.
USERAGENT - user-agent header string.
VERSION - current version.
# Structs
CodedError is an error that is machine readable.
ErrOutOfInventory is a codedError returned from vendor nodes when buyers try purchasing too many of an item.
ErrPriceModifierOutOfRange - customize limits for price modifier.
InventoryListing is the listing representation stored on IPFS.
ListingData - represent a listing.
OpenBazaarNode - represent ob node which encapsulates ipfsnode, wallet etc.
OrderRatings - record ratings for an order.
PurchaseData - record purchase data.
RatingData - record rating in detail.
SavedRating - represent saved rating.
# Type aliases
ErrCryptocurrencyListingIllegalField - invalid field err.
ErrCryptocurrencyPurchaseIllegalField - invalid purchase field err.
ErrMarketPriceListingIllegalField - invalid listing field err.
Inventory is the complete inventory representation stored on IPFS It maps slug -> quantity information.