package
2.4.3+incompatible
Repository: https://github.com/phoreproject/openbazaar-go.git
Documentation: pkg.go.dev

# Functions

CheckAndSetUlimit raises the file descriptor limit.
No description provided by the author
No description provided by the author
FormatRFC3339PB returns the given `google_protobuf.Timestamp` as a RFC3339 formatted string.
No description provided by the author
No description provided by the author
GetOrderQuantity - return the specified item quantity.
No description provided by the author
GetSelectedSku - return the specified item SKU.
No description provided by the author
No description provided by the author
NewErrOutOfInventory - return out of inventory err with available inventory.
ParseContractForListing - return the listing identified by the hash from the contract.
SameSku - check if the variants have the same SKU.
SignPayload produces a signature for the given private key and payload and returns it and the public key or an error.
ValidateProfile - validate fetched profile.
ValidateRating - validates rating for API GET and Post/Update.
VerifyPayload proves the payload and signature are authentic for the provided public key and returns the peer ID for that pubkey with no error on success.

# Constants

ChatMessageMaxCharacters - limit for chat msg.
ChatSubjectMaxCharacters - limit for chat subject.
CryptocurrencyPurchasePaymentAddressMaxLength - max permissible length for an address.
DefaultCurrencyDivisibility is the Divisibility of the Currency if not defined otherwise.
DefaultPointerPrefixLength - default ipfs pointer prefix.
EscrowReleaseSize - size in bytes for escrow op.
PostChannelsMaxCharacters - Maximum character length of a channel.
PostLongFormMaxCharacters - Maximum length of the longForm field of a post.
PostMaximumTotalChannels - Maximum number of channels a post can be addressed to.
PostMaximumTotalTags - Maximum number of tags a post can have.
PostReferenceMaxCharacters - Maximum character length of a reference.
PostStatusMaxCharacters - Maximum length of the status field of a post.
PostTagsMaxCharacters - Maximum character length of a tag.
RatingMax - max rating.
RatingMin - min raring.
ReviewMaxCharacters - max size for review.
USERAGENT - user-agent header string.
VERSION - current version.

# 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.
ErrFulfillCryptocurrencyTXIDNotFound - missing txn id err.
ErrFulfillCryptocurrencyTXIDTooLong - invalid txn id err.
ErrFulfillIncorrectDeliveryType - incorrect delivery type err.
ErrInsufficientFunds is returned when the wallet is unable to send the amount specified due to the balance being too low.
ErrInvalidAmount is returned when the string representation of the amount to spend is not an integer.
No description provided by the author
ErrInvalidSpendAddress is returned when the wallet is unable to decode the string address into a valid destination to send funds to.
No description provided by the author
ErrNoListings - no listing error FIXME : This is not used anywhere.
ErrOpenFailureOrderExpired - tried disputing expired order err.
ErrUnknownOrder is returned when the requested amount to spend is unable to be associated with the appropriate order.
ErrorProfileNotFound - profile not found error.
ErrPostBodyTooLong - post 'longForm' is longer than max characters error.
ErrPostChannelsTooMany - post channels longer than max length error.
ErrPostChannelTooLong - post channel has characters longer than max length error.
ErrPostImageFilenameNil - post image filename is nil error.
ErrPostImageFilenameTooLong - post image filename length longer than max.
ErrPostImageLargeFInvalidormat - post large image hash incorrectly formatted error.
ErrPostImageMediumFormatInvalid - post medium image hash incorrectly formatted error.
ErrPostImageOriginalFormatInvalid - post original image hash incorrectly formatted error.
ErrPostImageSmallFormatInvalid - post small image hash incorrectly formatted error.
ErrPostImagesTooMany - post images longer than max error.
ErrPostImageTinyFormatInvalid - post tiny image hash incorrectly formatted error.
ErrPostInvalidType - post type is invalid error.
ErrPostReferenceContainsSpaces - post reference has spaces error.
ErrPostReferenceEmpty - post has an empty reference error.
ErrPostReferenceTooLong - post reference has characters longer than max length error.
ErrPostSlugContainsSlashes - post slug has file separators.
ErrPostSlugContainsSpaces - post slug has spaces error.
ErrPostSlugNotEmpty - post slug is empty error.
ErrPostSlugTooLong - post slug longer than max characters error.
ErrPostStatusTooLong - post 'status' is longer than max characters error.
ErrPostTagsEmpty - post has empty tags error.
ErrPostTagsTooMany - post tags longer than max length error.
ErrPostTagTooLong - post tag has characters longer than max length error.
ErrPostUnknownValidationPanic - post has an unknown panic error.
ErrPrematureReleaseOfTimedoutEscrowFunds - custom err for premature escrow funds release.
ErrPriceCalculationRequiresExchangeRates - exchange rates dependency err.
ErrPurchaseUnknownListing - unavailable listing err.
ErrSpendAmountIsDust is returned when the requested amount to spend out of the wallet would be considered "dust" by the network.
ErrUnknownWallet is returned when a wallet is not present on the node.
EscrowTimeLockedError - custom err for time locked escrow.
MaxTXIDSize - max length for order txnID.
ModeratorPointerID moderator ipfs multihash.
Node - ob node.
OfflineMessageWaitGroup - used for offline msgs.

# 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.
InventoryListing is the listing representation stored on IPFS.
Lock / Unlock wallet request.
OpenBazaarNode - represent ob node which encapsulates ipfsnode, wallet etc.
OrderRatings - record ratings for an order.
RatingData - record rating in detail.
SavedRating - represent saved rating.
No description provided by the author
No description provided by the author

# Type aliases

Inventory is the complete inventory representation stored on IPFS It maps slug -> quantity information.