Documentation ¶
Index ¶
- type AdvancedSearchQuery
- type BuyerOrder
- type BuyerOrderCompletion
- type BuyerRating
- type Contract
- type ContractClass
- type Coupon
- type Field
- type IPFSListing
- type Image
- type Item
- type ItemElement
- type Listing
- type ListingClass
- type Location
- type Metadata
- type OldListing
- type Option
- type Payment
- type PaymentAddressTransaction
- type Peer
- type Price
- type PubKeys
- type Pubkeys
- type RID
- type Rating
- type RatingData
- type RatingSignature
- type RatingSignatureMetadata
- type Service
- type Shipping
- type ShippingOption
- type Signature
- type Skus
- type Thumbnail
- type Variant
- type VendorID
- type VendorListing
- type VendorListingItem
- type VendorListingMetadata
- type VendorOrderConfirmation
- type VendorOrderFulfillment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedSearchQuery ¶
type AdvancedSearchQuery struct { Query string `json:"query"` Filters []string `json:"filters"` Limit int `json:"limit"` Start int `json:"start"` Transforms []interface{} `json:"transforms"` Sort string `json:"sort"` // Generous means that all of the database items are going to be filtered Generous bool `json:"generous"` }
type BuyerOrder ¶
type BuyerOrder struct { RefundAddress string `json:"refundAddress"` RefundFee int64 `json:"refundFee"` Shipping Shipping `json:"shipping"` BuyerID RID `json:"buyerID"` Timestamp string `json:"timestamp"` Items []ItemElement `json:"items"` Payment Payment `json:"payment"` RatingKeys []string `json:"ratingKeys"` AlternateContactInfo string `json:"alternateContactInfo"` Version int64 `json:"version"` }
type BuyerOrderCompletion ¶
type BuyerRating ¶
type Contract ¶
type Contract struct { Contract ContractClass `json:"contract"` State string `json:"state"` Read bool `json:"read"` Funded bool `json:"funded"` UnreadChatMessages int64 `json:"unreadChatMessages"` PaymentAddressTransactions []PaymentAddressTransaction `json:"paymentAddressTransactions"` }
func UnmarshalContract ¶
type ContractClass ¶
type ContractClass struct { VendorListings []VendorListing `json:"vendorListings"` BuyerOrder BuyerOrder `json:"buyerOrder"` VendorOrderConfirmation VendorOrderConfirmation `json:"vendorOrderConfirmation"` VendorOrderFulfillment []VendorOrderFulfillment `json:"vendorOrderFulfillment"` BuyerOrderCompletion BuyerOrderCompletion `json:"buyerOrderCompletion"` Signatures []Signature `json:"signatures"` }
type IPFSListing ¶
type IPFSListing struct { Listing ListingClass `json:"listing"` Signature string `json:"signature"` }
type Item ¶
type Item struct { Title string `json:"title"` Description string `json:"description"` ProcessingTime string `json:"processingTime"` Price int64 `json:"price"` Tags []string `json:"tags"` Images []Image `json:"images"` Categories []string `json:"categories"` Condition string `json:"condition"` Options []Option `json:"options"` Skus []Skus `json:"skus"` }
type ItemElement ¶
type Listing ¶
type Listing struct { Slug string `json:"slug"` AverageRating int64 `json:"averageRating"` Hash string `json:"hash"` Language string `json:"language"` Nsfw bool `json:"nsfw"` RatingCount int64 `json:"ratingCount"` Thumbnail Thumbnail `json:"thumbnail"` PeerSlug string `json:"peerSlug"` ParentPeer string `json:"parentPeer"` Location Location `json:"location"` }
type ListingClass ¶
type ListingClass struct { Slug string `json:"slug"` VendorID VendorID `json:"vendorID"` Metadata Metadata `json:"metadata"` Item Item `json:"item"` ShippingOptions []ShippingOption `json:"shippingOptions"` Taxes []interface{} `json:"taxes"` Coupons []interface{} `json:"coupons"` Moderators []string `json:"moderators"` TermsAndConditions string `json:"termsAndConditions"` RefundPolicy string `json:"refundPolicy"` AverageRating int64 `json:"averageRating"` Hash string `json:"hash"` Language string `json:"language"` Nsfw bool `json:"nsfw"` RatingCount int64 `json:"ratingCount"` Thumbnail Thumbnail `json:"thumbnail"` PeerSlug string `json:"peerSlug"` ParentPeer string `json:"parentPeer"` Location Location `json:"location"` }
type Location ¶
type Location struct { Latitude string `json:"latitude"` Longitude string `json:"longitude"` PlusCode string `json:"plusCode"` AddressOne string `json:"addressOne"` AddressTwo string `json:"addressTwo"` City string `json:"city"` State string `json:"state"` Country string `json:"country"` ZipCode string `json:"zipCode"` }
type Metadata ¶
type Metadata struct { Version int64 `json:"version"` ContractType string `json:"contractType"` Format string `json:"format"` Expiry string `json:"expiry"` AcceptedCurrencies []string `json:"acceptedCurrencies"` PricingCurrency string `json:"pricingCurrency"` EscrowTimeoutHours int64 `json:"escrowTimeoutHours"` ServiceRateMethod string `json:"serviceRateMethod"` ServiceClassification string `json:"serviceClassification"` }
type OldListing ¶
type OldListing struct { AcceptedCurrencies []string `json:"acceptedCurrencies"` AverageRating int64 `json:"averageRating"` Categories []string `json:"categories"` ContractType string `json:"contractType"` Description string `json:"description"` Hash string `json:"hash"` Language string `json:"language"` Location Location `json:"location"` Moderators []interface{} `json:"moderators"` Nsfw bool `json:"nsfw"` Price Price `json:"price"` RatingCount int64 `json:"ratingCount"` Slug string `json:"slug"` Thumbnail Thumbnail `json:"thumbnail"` Title string `json:"title"` }
type PubKeys ¶
type PubKeys struct { Identity string `json:"identity"` // contains filtered or unexported fields }
type Rating ¶
type Rating struct { RatingData RatingData `json:"ratingData"` Signature string `json:"signature"` }
type RatingData ¶
type RatingData struct { RatingKey string `json:"ratingKey"` VendorID RID `json:"vendorID"` VendorSig RatingSignature `json:"vendorSig"` BuyerID RID `json:"buyerID"` BuyerName string `json:"buyerName"` BuyerSig string `json:"buyerSig"` Timestamp string `json:"timestamp"` Overall int64 `json:"overall"` Quality int64 `json:"quality"` Description int64 `json:"description"` DeliverySpeed int64 `json:"deliverySpeed"` CustomerService int64 `json:"customerService"` Review string `json:"review"` }
type RatingSignature ¶
type RatingSignature struct { Metadata RatingSignatureMetadata `json:"metadata"` Signature string `json:"signature"` }
type RatingSignatureMetadata ¶
type ShippingOption ¶
type VendorListing ¶
type VendorListing struct { Slug string `json:"slug"` VendorID RID `json:"vendorID"` Metadata VendorListingMetadata `json:"metadata"` Item VendorListingItem `json:"item"` ShippingOptions []interface{} `json:"shippingOptions"` Coupons []Coupon `json:"coupons"` Moderators []interface{} `json:"moderators"` TermsAndConditions string `json:"termsAndConditions"` RefundPolicy string `json:"refundPolicy"` Location Location `json:"location"` }
type VendorListingItem ¶
type VendorListingItem struct { Title string `json:"title"` Description string `json:"description"` ProcessingTime string `json:"processingTime"` Price int64 `json:"price"` Nsfw bool `json:"nsfw"` Tags []string `json:"tags"` Images []Image `json:"images"` Categories []string `json:"categories"` Grams int64 `json:"grams"` Condition string `json:"condition"` Options []interface{} `json:"options"` Skus []Skus `json:"skus"` }
type VendorListingMetadata ¶
type VendorListingMetadata struct { Version int64 `json:"version"` ContractType string `json:"contractType"` Format string `json:"format"` Expiry string `json:"expiry"` AcceptedCurrencies []string `json:"acceptedCurrencies"` PricingCurrency string `json:"pricingCurrency"` Language string `json:"language"` EscrowTimeoutHours int64 `json:"escrowTimeoutHours"` CoinType string `json:"coinType"` CoinDivisibility int64 `json:"coinDivisibility"` PriceModifier int64 `json:"priceModifier"` ServiceRateMethod string `json:"serviceRateMethod"` ServiceClassification string `json:"serviceClassification"` }
type VendorOrderConfirmation ¶
type VendorOrderFulfillment ¶
type VendorOrderFulfillment struct { OrderID string `json:"orderId"` Slug string `json:"slug"` Timestamp string `json:"timestamp"` RatingSignature RatingSignature `json:"ratingSignature"` Note string `json:"note"` BuyerRating BuyerRating `json:"buyerRating"` }
Click to show internal directories.
Click to hide internal directories.