Documentation ¶
Overview ¶
Package contracts is a generated protocol buffer package.
It is generated from these files:
contracts.proto
It has these top-level messages:
RicardianContract Listing Order OrderConfirmation Rating Dispute DisputeResolution Refund ID Signatures
Package countrycodes is a generated protocol buffer package.
It is generated from these files:
countrycodes.proto
It has these top-level messages:
Package message is a generated protocol buffer package.
It is generated from these files:
message.proto
It has these top-level messages:
Message Envelope
Index ¶
- Variables
- type CountryCode
- type Dispute
- type DisputeResolution
- type Envelope
- type ID
- type ID_Pubkeys
- type Listing
- func (*Listing) Descriptor() ([]byte, []int)
- func (m *Listing) GetItem() *Listing_Item
- func (m *Listing) GetMetadata() *Listing_Metadata
- func (m *Listing) GetShipping() *Listing_Shipping
- func (m *Listing) GetVendorID() *ID
- func (*Listing) ProtoMessage()
- func (m *Listing) Reset()
- func (m *Listing) String() string
- type Listing_Item
- type Listing_Item_Option
- type Listing_Metadata
- type Listing_Metadata_Category
- type Listing_Metadata_CategorySub
- type Listing_Price
- type Listing_Price_Fiat
- type Listing_Shipping
- func (*Listing_Shipping) Descriptor() ([]byte, []int)
- func (m *Listing_Shipping) GetDomestic() *Listing_Price
- func (m *Listing_Shipping) GetEstimatedDelivery() *Listing_Shipping_EstimatedDelivery
- func (m *Listing_Shipping) GetInternational() *Listing_Price
- func (*Listing_Shipping) ProtoMessage()
- func (m *Listing_Shipping) Reset()
- func (m *Listing_Shipping) String() string
- type Listing_Shipping_EstimatedDelivery
- type Message
- type Message_MessageType
- type Order
- type OrderConfirmation
- type Order_Item
- type Order_Item_Option
- type Order_Payment
- type Order_Payment_Method
- type Order_Shipping
- type Rating
- type Refund
- type RicardianContract
- func (*RicardianContract) Descriptor() ([]byte, []int)
- func (m *RicardianContract) GetBuyerOrder() *Order
- func (m *RicardianContract) GetBuyerRating() *Rating
- func (m *RicardianContract) GetDispute() *Dispute
- func (m *RicardianContract) GetDisputeResolution() *DisputeResolution
- func (m *RicardianContract) GetRefund() *Refund
- func (m *RicardianContract) GetSignatures() []*Signatures
- func (m *RicardianContract) GetVendorListings() []*Listing
- func (m *RicardianContract) GetVendorOrderConfirmation() *OrderConfirmation
- func (*RicardianContract) ProtoMessage()
- func (m *RicardianContract) Reset()
- func (m *RicardianContract) String() string
- type Signatures
- type Signatures_Section
Constants ¶
This section is empty.
Variables ¶
View Source
var CountryCode_name = map[int32]string{}/* 253 elements not displayed */
View Source
var CountryCode_value = map[string]int32{}/* 253 elements not displayed */
View Source
var Listing_Metadata_CategorySub_name = map[int32]string{
0: "NA",
1: "FIXED_PRICE",
2: "AUCTION",
}
View Source
var Listing_Metadata_CategorySub_value = map[string]int32{
"NA": 0,
"FIXED_PRICE": 1,
"AUCTION": 2,
}
View Source
var Listing_Metadata_Category_name = map[int32]string{
0: "UNKNOWN",
1: "PHYSICAL_GOOD",
2: "DIGITAL_GOOD",
3: "SERVICE",
}
View Source
var Listing_Metadata_Category_value = map[string]int32{
"UNKNOWN": 0,
"PHYSICAL_GOOD": 1,
"DIGITAL_GOOD": 2,
"SERVICE": 3,
}
View Source
var Message_MessageType_name = map[int32]string{
0: "PING",
1: "MESSAGE",
2: "FOLLOW",
3: "UNFOLLOW",
4: "ORDER",
5: "ORDER_ACK",
6: "ORDER_CONFIRMATION",
7: "RATING",
8: "DISPUTE_OPEN",
9: "DISPUTE_CLOSE",
10: "REFUND",
11: "OFFLINE_ACK",
}
View Source
var Message_MessageType_value = map[string]int32{
"PING": 0,
"MESSAGE": 1,
"FOLLOW": 2,
"UNFOLLOW": 3,
"ORDER": 4,
"ORDER_ACK": 5,
"ORDER_CONFIRMATION": 6,
"RATING": 7,
"DISPUTE_OPEN": 8,
"DISPUTE_CLOSE": 9,
"REFUND": 10,
"OFFLINE_ACK": 11,
}
View Source
var Order_Payment_Method_name = map[int32]string{
0: "DIRECT",
1: "MODERATED",
}
View Source
var Order_Payment_Method_value = map[string]int32{
"DIRECT": 0,
"MODERATED": 1,
}
View Source
var Signatures_Section_name = map[int32]string{
0: "NA",
1: "LISTING",
2: "ORDER",
3: "ORDER_CONFIRMATION",
4: "RATING",
5: "DISPUTE",
6: "DISPUTE_RESOLUTION",
7: "REFUND",
}
View Source
var Signatures_Section_value = map[string]int32{
"NA": 0,
"LISTING": 1,
"ORDER": 2,
"ORDER_CONFIRMATION": 3,
"RATING": 4,
"DISPUTE": 5,
"DISPUTE_RESOLUTION": 6,
"REFUND": 7,
}
Functions ¶
This section is empty.
Types ¶
type CountryCode ¶
type CountryCode int32
const ( CountryCode_NA CountryCode = 0 CountryCode_ALL CountryCode = 1 CountryCode_NORTH_AMERICA CountryCode = 2 CountryCode_SOUTH_AMERICA CountryCode = 3 CountryCode_EUROPE CountryCode = 4 CountryCode_AFRICA CountryCode = 5 CountryCode_ASIA CountryCode = 6 CountryCode_AFGHANISTAN CountryCode = 7 CountryCode_ALAND_ISLANDS CountryCode = 8 CountryCode_ALBANIA CountryCode = 9 CountryCode_ALGERIA CountryCode = 10 CountryCode_AMERICAN_SAMOA CountryCode = 11 CountryCode_ANDORRA CountryCode = 12 CountryCode_ANGOLA CountryCode = 13 CountryCode_ANGUILLA CountryCode = 14 CountryCode_ANTIGUA CountryCode = 15 CountryCode_ARGENTINA CountryCode = 16 CountryCode_ARMENIA CountryCode = 17 CountryCode_ARUBA CountryCode = 18 CountryCode_AUSTRALIA CountryCode = 19 CountryCode_AUSTRIA CountryCode = 20 CountryCode_AZERBAIJAN CountryCode = 21 CountryCode_BAHAMAS CountryCode = 22 CountryCode_BAHRAIN CountryCode = 23 CountryCode_BANGLADESH CountryCode = 24 CountryCode_BARBADOS CountryCode = 25 CountryCode_BELARUS CountryCode = 26 CountryCode_BELGIUM CountryCode = 27 CountryCode_BELIZE CountryCode = 28 CountryCode_BENIN CountryCode = 29 CountryCode_BERMUDA CountryCode = 30 CountryCode_BHUTAN CountryCode = 31 CountryCode_BOLIVIA CountryCode = 32 CountryCode_BONAIRE_SINT_EUSTATIUS_SABA CountryCode = 33 CountryCode_BOSNIA CountryCode = 34 CountryCode_BOTSWANA CountryCode = 35 CountryCode_BOUVET_ISLAND CountryCode = 36 CountryCode_BRAZIL CountryCode = 37 CountryCode_BRITISH_INDIAN_OCEAN_TERRITORY CountryCode = 38 CountryCode_BRUNEI_DARUSSALAM CountryCode = 39 CountryCode_BULGARIA CountryCode = 40 CountryCode_BURKINA_FASO CountryCode = 41 CountryCode_BURUNDI CountryCode = 42 CountryCode_CABO_VERDE CountryCode = 43 CountryCode_CAMBODIA CountryCode = 44 CountryCode_CAMEROON CountryCode = 45 CountryCode_CANADA CountryCode = 46 CountryCode_CAYMAN_ISLANDS CountryCode = 47 CountryCode_CENTRAL_AFRICAN_REPUBLIC CountryCode = 48 CountryCode_CHAD CountryCode = 49 CountryCode_CHILE CountryCode = 50 CountryCode_CHINA CountryCode = 51 CountryCode_CHRISTMAS_ISLAND CountryCode = 52 CountryCode_COCOS_ISLANDS CountryCode = 53 CountryCode_COLOMBIA CountryCode = 54 CountryCode_COMOROS CountryCode = 55 CountryCode_CONGO_REPUBLIC CountryCode = 56 CountryCode_CONGO CountryCode = 57 CountryCode_COOK_ISLANDS CountryCode = 58 CountryCode_COSTA_RICA CountryCode = 59 CountryCode_COTE_DIVOIRE CountryCode = 60 CountryCode_CROATIA CountryCode = 61 CountryCode_CUBA CountryCode = 62 CountryCode_CURACAO CountryCode = 63 CountryCode_CYPRUS CountryCode = 64 CountryCode_CZECH_REPUBLIC CountryCode = 65 CountryCode_DENMARK CountryCode = 66 CountryCode_DJIBOUTI CountryCode = 67 CountryCode_DOMINICA CountryCode = 68 CountryCode_DOMINICAN_REPUBLIC CountryCode = 69 CountryCode_ECUADOR CountryCode = 70 CountryCode_EGYPT CountryCode = 71 CountryCode_EL_SALVADOR CountryCode = 72 CountryCode_EQUATORIAL_GUINEA CountryCode = 73 CountryCode_ERITREA CountryCode = 74 CountryCode_ESTONIA CountryCode = 75 CountryCode_ETHIOPIA CountryCode = 76 CountryCode_FALKLAND_ISLANDS CountryCode = 77 CountryCode_FAROE_ISLANDS CountryCode = 78 CountryCode_FIJI CountryCode = 79 CountryCode_FINLAND CountryCode = 80 CountryCode_FRANCE CountryCode = 81 CountryCode_FRENCH_GUIANA CountryCode = 82 CountryCode_FRENCH_POLYNESIA CountryCode = 83 CountryCode_FRENCH_SOUTHERN_TERRITORIES CountryCode = 84 CountryCode_GABON CountryCode = 85 CountryCode_GAMBIA CountryCode = 86 CountryCode_GEORGIA CountryCode = 87 CountryCode_GERMANY CountryCode = 88 CountryCode_GHANA CountryCode = 89 CountryCode_GIBRALTAR CountryCode = 90 CountryCode_GREECE CountryCode = 91 CountryCode_GREENLAND CountryCode = 92 CountryCode_GRENADA CountryCode = 93 CountryCode_GUADELOUPE CountryCode = 94 CountryCode_GUAM CountryCode = 95 CountryCode_GUATEMALA CountryCode = 96 CountryCode_GUERNSEY CountryCode = 97 CountryCode_GUINEA CountryCode = 98 CountryCode_GUINEA_BISSAU CountryCode = 99 CountryCode_GUYANA CountryCode = 100 CountryCode_HAITI CountryCode = 101 CountryCode_HEARD_ISLAND CountryCode = 102 CountryCode_HOLY_SEE CountryCode = 103 CountryCode_HONDURAS CountryCode = 104 CountryCode_HONG_KONG CountryCode = 105 CountryCode_HUNGARY CountryCode = 106 CountryCode_ICELAND CountryCode = 107 CountryCode_INDIA CountryCode = 108 CountryCode_INDONESIA CountryCode = 109 CountryCode_IRAN CountryCode = 110 CountryCode_IRAQ CountryCode = 111 CountryCode_IRELAND CountryCode = 112 CountryCode_ISLE_OF_MAN CountryCode = 113 CountryCode_ISRAEL CountryCode = 114 CountryCode_ITALY CountryCode = 115 CountryCode_JAMAICA CountryCode = 116 CountryCode_JAPAN CountryCode = 117 CountryCode_JERSEY CountryCode = 118 CountryCode_JORDAN CountryCode = 119 CountryCode_KAZAKHSTAN CountryCode = 120 CountryCode_KENYA CountryCode = 121 CountryCode_KIRIBATI CountryCode = 122 CountryCode_NORTH_KOREA CountryCode = 123 CountryCode_SOUTH_KOREA CountryCode = 124 CountryCode_KUWAIT CountryCode = 125 CountryCode_KYRGYZSTAN CountryCode = 126 CountryCode_LAO CountryCode = 127 CountryCode_LATVIA CountryCode = 128 CountryCode_LEBANON CountryCode = 129 CountryCode_LESOTHO CountryCode = 130 CountryCode_LIBERIA CountryCode = 131 CountryCode_LIBYA CountryCode = 132 CountryCode_LIECHTENSTEIN CountryCode = 133 CountryCode_LITHUANIA CountryCode = 134 CountryCode_LUXEMBOURG CountryCode = 135 CountryCode_MACAO CountryCode = 136 CountryCode_MACEDONIA CountryCode = 137 CountryCode_MADAGASCAR CountryCode = 138 CountryCode_MALAWI CountryCode = 139 CountryCode_MALAYSIA CountryCode = 140 CountryCode_MALDIVES CountryCode = 141 CountryCode_MALI CountryCode = 142 CountryCode_MALTA CountryCode = 143 CountryCode_MARSHALL_ISLANDS CountryCode = 144 CountryCode_MARTINIQUE CountryCode = 145 CountryCode_MAURITANIA CountryCode = 146 CountryCode_MAURITIUS CountryCode = 147 CountryCode_MAYOTTE CountryCode = 148 CountryCode_MEXICO CountryCode = 149 CountryCode_MICRONESIA CountryCode = 150 CountryCode_MOLDOVA CountryCode = 151 CountryCode_MONACO CountryCode = 152 CountryCode_MONGOLIA CountryCode = 153 CountryCode_MONTENEGRO CountryCode = 154 CountryCode_MONTSERRAT CountryCode = 155 CountryCode_MOROCCO CountryCode = 156 CountryCode_MOZAMBIQUE CountryCode = 157 CountryCode_MYANMAR CountryCode = 158 CountryCode_NAMIBIA CountryCode = 159 CountryCode_NAURU CountryCode = 160 CountryCode_NEPAL CountryCode = 161 CountryCode_NETHERLANDS CountryCode = 162 CountryCode_NEW_CALEDONIA CountryCode = 163 CountryCode_NEW_ZEALAND CountryCode = 164 CountryCode_NICARAGUA CountryCode = 165 CountryCode_NIGER CountryCode = 166 CountryCode_NIGERIA CountryCode = 167 CountryCode_NIUE CountryCode = 168 CountryCode_NORFOLK_ISLAND CountryCode = 169 CountryCode_NORTHERN_MARIANA_ISLANDS CountryCode = 170 CountryCode_NORWAY CountryCode = 171 CountryCode_OMAN CountryCode = 172 CountryCode_PAKISTAN CountryCode = 173 CountryCode_PALAU CountryCode = 174 CountryCode_PANAMA CountryCode = 175 CountryCode_PAPUA_NEW_GUINEA CountryCode = 176 CountryCode_PARAGUAY CountryCode = 177 CountryCode_PERU CountryCode = 178 CountryCode_PHILIPPINES CountryCode = 179 CountryCode_PITCAIRN CountryCode = 180 CountryCode_POLAND CountryCode = 181 CountryCode_PORTUGAL CountryCode = 182 CountryCode_PUERTO_RICO CountryCode = 183 CountryCode_QATAR CountryCode = 184 CountryCode_REUNION CountryCode = 185 CountryCode_ROMANIA CountryCode = 186 CountryCode_RUSSIA CountryCode = 187 CountryCode_RWANDA CountryCode = 188 CountryCode_SAINT_BARTHELEMY CountryCode = 189 CountryCode_SAINT_HELENA CountryCode = 190 CountryCode_SAINT_KITTS CountryCode = 191 CountryCode_SAINT_LUCIA CountryCode = 192 CountryCode_SAINT_MARTIN CountryCode = 193 CountryCode_SAINT_PIERRE CountryCode = 194 CountryCode_SAINT_VINCENT CountryCode = 195 CountryCode_SAMOA CountryCode = 196 CountryCode_SAN_MARINO CountryCode = 197 CountryCode_SAO_TOME CountryCode = 198 CountryCode_SAUDI_ARABIA CountryCode = 199 CountryCode_SENEGAL CountryCode = 200 CountryCode_SERBIA CountryCode = 201 CountryCode_SEYCHELLES CountryCode = 202 CountryCode_SIERRA_LEONE CountryCode = 203 CountryCode_SINGAPORE CountryCode = 204 CountryCode_SINT_MAARTEN CountryCode = 205 CountryCode_SUCRE CountryCode = 206 CountryCode_SLOVAKIA CountryCode = 207 CountryCode_SLOVENIA CountryCode = 208 CountryCode_SOLOMON_ISLANDS CountryCode = 209 CountryCode_SOMALIA CountryCode = 210 CountryCode_SOUTH_AFRICA CountryCode = 211 CountryCode_SOUTH_SUDAN CountryCode = 212 CountryCode_SPAIN CountryCode = 213 CountryCode_SRI_LANKA CountryCode = 214 CountryCode_SUDAN CountryCode = 215 CountryCode_SURINAME CountryCode = 216 CountryCode_SVALBARD CountryCode = 217 CountryCode_SWAZILAND CountryCode = 218 CountryCode_SWEDEN CountryCode = 219 CountryCode_SWITZERLAND CountryCode = 220 CountryCode_SYRIAN_ARAB_REPUBLIC CountryCode = 221 CountryCode_TAIWAN CountryCode = 222 CountryCode_TAJIKISTAN CountryCode = 223 CountryCode_TANZANIA CountryCode = 224 CountryCode_THAILAND CountryCode = 225 CountryCode_TIMOR_LESTE CountryCode = 226 CountryCode_TOGO CountryCode = 227 CountryCode_TOKELAU CountryCode = 228 CountryCode_TONGA CountryCode = 229 CountryCode_TRINIDAD CountryCode = 230 CountryCode_TUNISIA CountryCode = 231 CountryCode_TURKEY CountryCode = 232 CountryCode_TURKMENISTAN CountryCode = 233 CountryCode_TURKS_AND_CAICOS_ISLANDS CountryCode = 234 CountryCode_TUVALU CountryCode = 235 CountryCode_UGANDA CountryCode = 236 CountryCode_UKRAINE CountryCode = 237 CountryCode_UNITED_ARAB_EMIRATES CountryCode = 238 CountryCode_UNITED_KINGDOM CountryCode = 239 CountryCode_UNITED_STATES CountryCode = 240 CountryCode_URUGUAY CountryCode = 241 CountryCode_UZBEKISTAN CountryCode = 242 CountryCode_VANUATU CountryCode = 243 CountryCode_VENEZUELA CountryCode = 244 CountryCode_VIETNAM CountryCode = 245 CountryCode_VIRGIN_ISLANDS_BRITISH CountryCode = 246 CountryCode_VIRGIN_ISLANDS_US CountryCode = 247 CountryCode_WALLIS_AND_FUTUNA CountryCode = 248 CountryCode_WESTERN_SAHARA CountryCode = 249 CountryCode_YEMEN CountryCode = 250 CountryCode_ZAMBIA CountryCode = 251 CountryCode_ZIMBABWE CountryCode = 252 )
func (CountryCode) EnumDescriptor ¶
func (CountryCode) EnumDescriptor() ([]byte, []int)
func (CountryCode) String ¶
func (x CountryCode) String() string
type Dispute ¶
type Dispute struct { }
func (*Dispute) Descriptor ¶
func (*Dispute) ProtoMessage ¶
func (*Dispute) ProtoMessage()
type DisputeResolution ¶
type DisputeResolution struct { }
func (*DisputeResolution) Descriptor ¶
func (*DisputeResolution) Descriptor() ([]byte, []int)
func (*DisputeResolution) ProtoMessage ¶
func (*DisputeResolution) ProtoMessage()
func (*DisputeResolution) Reset ¶
func (m *DisputeResolution) Reset()
func (*DisputeResolution) String ¶
func (m *DisputeResolution) String() string
type Envelope ¶
type Envelope struct { Message *Message `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` PeerID string `protobuf:"bytes,2,opt,name=peerID" json:"peerID,omitempty"` }
func (*Envelope) Descriptor ¶
func (*Envelope) GetMessage ¶
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
type ID ¶
type ID struct { Guid string `protobuf:"bytes,1,opt,name=guid" json:"guid,omitempty"` BlockchainID string `protobuf:"bytes,2,opt,name=blockchainID" json:"blockchainID,omitempty"` Pubkeys *ID_Pubkeys `protobuf:"bytes,3,opt,name=pubkeys" json:"pubkeys,omitempty"` }
func (*ID) Descriptor ¶
func (*ID) GetPubkeys ¶
func (m *ID) GetPubkeys() *ID_Pubkeys
func (*ID) ProtoMessage ¶
func (*ID) ProtoMessage()
type ID_Pubkeys ¶
type ID_Pubkeys struct { Guid []byte `protobuf:"bytes,1,opt,name=guid,proto3" json:"guid,omitempty"` Bitcoin []byte `protobuf:"bytes,2,opt,name=bitcoin,proto3" json:"bitcoin,omitempty"` }
func (*ID_Pubkeys) Descriptor ¶
func (*ID_Pubkeys) Descriptor() ([]byte, []int)
func (*ID_Pubkeys) ProtoMessage ¶
func (*ID_Pubkeys) ProtoMessage()
func (*ID_Pubkeys) Reset ¶
func (m *ID_Pubkeys) Reset()
func (*ID_Pubkeys) String ¶
func (m *ID_Pubkeys) String() string
type Listing ¶
type Listing struct { ListingName string `protobuf:"bytes,1,opt,name=listingName" json:"listingName,omitempty"` VendorID *ID `protobuf:"bytes,2,opt,name=vendorID" json:"vendorID,omitempty"` Metadata *Listing_Metadata `protobuf:"bytes,3,opt,name=metadata" json:"metadata,omitempty"` Item *Listing_Item `protobuf:"bytes,4,opt,name=item" json:"item,omitempty"` Shipping *Listing_Shipping `protobuf:"bytes,5,opt,name=shipping" json:"shipping,omitempty"` Moderators []string `protobuf:"bytes,6,rep,name=moderators" json:"moderators,omitempty"` TermsAndConditions string `protobuf:"bytes,7,opt,name=termsAndConditions" json:"termsAndConditions,omitempty"` RefundPolicy string `protobuf:"bytes,8,opt,name=refundPolicy" json:"refundPolicy,omitempty"` }
func (*Listing) Descriptor ¶
func (*Listing) GetItem ¶
func (m *Listing) GetItem() *Listing_Item
func (*Listing) GetMetadata ¶
func (m *Listing) GetMetadata() *Listing_Metadata
func (*Listing) GetShipping ¶
func (m *Listing) GetShipping() *Listing_Shipping
func (*Listing) GetVendorID ¶
func (*Listing) ProtoMessage ¶
func (*Listing) ProtoMessage()
type Listing_Item ¶
type Listing_Item struct { Title string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` ProcessingTime string `protobuf:"bytes,3,opt,name=processingTime" json:"processingTime,omitempty"` PricePerUnit *Listing_Price `protobuf:"bytes,4,opt,name=pricePerUnit" json:"pricePerUnit,omitempty"` Nsfw bool `protobuf:"varint,5,opt,name=nsfw" json:"nsfw,omitempty"` Tags []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"` ImageHashes []string `protobuf:"bytes,7,rep,name=imageHashes" json:"imageHashes,omitempty"` SKU string `protobuf:"bytes,8,opt,name=SKU,json=sKU" json:"SKU,omitempty"` Condition string `protobuf:"bytes,9,opt,name=condition" json:"condition,omitempty"` Options []*Listing_Item_Option `protobuf:"bytes,10,rep,name=options" json:"options,omitempty"` }
func (*Listing_Item) Descriptor ¶
func (*Listing_Item) Descriptor() ([]byte, []int)
func (*Listing_Item) GetOptions ¶
func (m *Listing_Item) GetOptions() []*Listing_Item_Option
func (*Listing_Item) GetPricePerUnit ¶
func (m *Listing_Item) GetPricePerUnit() *Listing_Price
func (*Listing_Item) ProtoMessage ¶
func (*Listing_Item) ProtoMessage()
func (*Listing_Item) Reset ¶
func (m *Listing_Item) Reset()
func (*Listing_Item) String ¶
func (m *Listing_Item) String() string
type Listing_Item_Option ¶
type Listing_Item_Option struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` Values []string `protobuf:"bytes,3,rep,name=values" json:"values,omitempty"` }
func (*Listing_Item_Option) Descriptor ¶
func (*Listing_Item_Option) Descriptor() ([]byte, []int)
func (*Listing_Item_Option) ProtoMessage ¶
func (*Listing_Item_Option) ProtoMessage()
func (*Listing_Item_Option) Reset ¶
func (m *Listing_Item_Option) Reset()
func (*Listing_Item_Option) String ¶
func (m *Listing_Item_Option) String() string
type Listing_Metadata ¶
type Listing_Metadata struct { Version uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` Category Listing_Metadata_Category `protobuf:"varint,2,opt,name=category,enum=Listing_Metadata_Category" json:"category,omitempty"` CategorySub Listing_Metadata_CategorySub `protobuf:"varint,3,opt,name=categorySub,enum=Listing_Metadata_CategorySub" json:"categorySub,omitempty"` Expiry uint64 `protobuf:"varint,4,opt,name=expiry" json:"expiry,omitempty"` }
func (*Listing_Metadata) Descriptor ¶
func (*Listing_Metadata) Descriptor() ([]byte, []int)
func (*Listing_Metadata) ProtoMessage ¶
func (*Listing_Metadata) ProtoMessage()
func (*Listing_Metadata) Reset ¶
func (m *Listing_Metadata) Reset()
func (*Listing_Metadata) String ¶
func (m *Listing_Metadata) String() string
type Listing_Metadata_Category ¶
type Listing_Metadata_Category int32
const ( Listing_Metadata_UNKNOWN Listing_Metadata_Category = 0 Listing_Metadata_PHYSICAL_GOOD Listing_Metadata_Category = 1 Listing_Metadata_DIGITAL_GOOD Listing_Metadata_Category = 2 Listing_Metadata_SERVICE Listing_Metadata_Category = 3 )
func (Listing_Metadata_Category) EnumDescriptor ¶
func (Listing_Metadata_Category) EnumDescriptor() ([]byte, []int)
func (Listing_Metadata_Category) String ¶
func (x Listing_Metadata_Category) String() string
type Listing_Metadata_CategorySub ¶
type Listing_Metadata_CategorySub int32
const ( Listing_Metadata_NA Listing_Metadata_CategorySub = 0 Listing_Metadata_FIXED_PRICE Listing_Metadata_CategorySub = 1 Listing_Metadata_AUCTION Listing_Metadata_CategorySub = 2 )
func (Listing_Metadata_CategorySub) EnumDescriptor ¶
func (Listing_Metadata_CategorySub) EnumDescriptor() ([]byte, []int)
func (Listing_Metadata_CategorySub) String ¶
func (x Listing_Metadata_CategorySub) String() string
type Listing_Price ¶
type Listing_Price struct { Bitcoin uint32 `protobuf:"varint,1,opt,name=bitcoin" json:"bitcoin,omitempty"` Fiat *Listing_Price_Fiat `protobuf:"bytes,2,opt,name=fiat" json:"fiat,omitempty"` }
func (*Listing_Price) Descriptor ¶
func (*Listing_Price) Descriptor() ([]byte, []int)
func (*Listing_Price) GetFiat ¶
func (m *Listing_Price) GetFiat() *Listing_Price_Fiat
func (*Listing_Price) ProtoMessage ¶
func (*Listing_Price) ProtoMessage()
func (*Listing_Price) Reset ¶
func (m *Listing_Price) Reset()
func (*Listing_Price) String ¶
func (m *Listing_Price) String() string
type Listing_Price_Fiat ¶
type Listing_Price_Fiat struct { CurrencyCode string `protobuf:"bytes,1,opt,name=currencyCode" json:"currencyCode,omitempty"` Price float32 `protobuf:"fixed32,2,opt,name=price" json:"price,omitempty"` }
func (*Listing_Price_Fiat) Descriptor ¶
func (*Listing_Price_Fiat) Descriptor() ([]byte, []int)
func (*Listing_Price_Fiat) ProtoMessage ¶
func (*Listing_Price_Fiat) ProtoMessage()
func (*Listing_Price_Fiat) Reset ¶
func (m *Listing_Price_Fiat) Reset()
func (*Listing_Price_Fiat) String ¶
func (m *Listing_Price_Fiat) String() string
type Listing_Shipping ¶
type Listing_Shipping struct { Domestic *Listing_Price `protobuf:"bytes,1,opt,name=domestic" json:"domestic,omitempty"` International *Listing_Price `protobuf:"bytes,2,opt,name=international" json:"international,omitempty"` ShippingRegions []CountryCode `protobuf:"varint,3,rep,name=shippingRegions,enum=CountryCode" json:"shippingRegions,omitempty"` EstimatedDelivery *Listing_Shipping_EstimatedDelivery `protobuf:"bytes,4,opt,name=estimatedDelivery" json:"estimatedDelivery,omitempty"` ShippingOrigin CountryCode `protobuf:"varint,5,opt,name=shippingOrigin,enum=CountryCode" json:"shippingOrigin,omitempty"` }
func (*Listing_Shipping) Descriptor ¶
func (*Listing_Shipping) Descriptor() ([]byte, []int)
func (*Listing_Shipping) GetDomestic ¶
func (m *Listing_Shipping) GetDomestic() *Listing_Price
func (*Listing_Shipping) GetEstimatedDelivery ¶
func (m *Listing_Shipping) GetEstimatedDelivery() *Listing_Shipping_EstimatedDelivery
func (*Listing_Shipping) GetInternational ¶
func (m *Listing_Shipping) GetInternational() *Listing_Price
func (*Listing_Shipping) ProtoMessage ¶
func (*Listing_Shipping) ProtoMessage()
func (*Listing_Shipping) Reset ¶
func (m *Listing_Shipping) Reset()
func (*Listing_Shipping) String ¶
func (m *Listing_Shipping) String() string
type Listing_Shipping_EstimatedDelivery ¶
type Listing_Shipping_EstimatedDelivery struct { Domestic string `protobuf:"bytes,1,opt,name=domestic" json:"domestic,omitempty"` International string `protobuf:"bytes,2,opt,name=international" json:"international,omitempty"` }
func (*Listing_Shipping_EstimatedDelivery) Descriptor ¶
func (*Listing_Shipping_EstimatedDelivery) Descriptor() ([]byte, []int)
func (*Listing_Shipping_EstimatedDelivery) ProtoMessage ¶
func (*Listing_Shipping_EstimatedDelivery) ProtoMessage()
func (*Listing_Shipping_EstimatedDelivery) Reset ¶
func (m *Listing_Shipping_EstimatedDelivery) Reset()
func (*Listing_Shipping_EstimatedDelivery) String ¶
func (m *Listing_Shipping_EstimatedDelivery) String() string
type Message ¶
type Message struct { MessageType Message_MessageType `protobuf:"varint,1,opt,name=messageType,enum=Message_MessageType" json:"messageType,omitempty"` Payload *google_protobuf.Any `protobuf:"bytes,2,opt,name=payload" json:"payload,omitempty"` }
func (*Message) Descriptor ¶
func (*Message) GetPayload ¶
func (m *Message) GetPayload() *google_protobuf.Any
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
type Message_MessageType ¶
type Message_MessageType int32
const ( Message_PING Message_MessageType = 0 Message_MESSAGE Message_MessageType = 1 Message_FOLLOW Message_MessageType = 2 Message_UNFOLLOW Message_MessageType = 3 Message_ORDER Message_MessageType = 4 Message_ORDER_ACK Message_MessageType = 5 Message_ORDER_CONFIRMATION Message_MessageType = 6 Message_RATING Message_MessageType = 7 Message_DISPUTE_OPEN Message_MessageType = 8 Message_DISPUTE_CLOSE Message_MessageType = 9 Message_REFUND Message_MessageType = 10 Message_OFFLINE_ACK Message_MessageType = 11 )
func (Message_MessageType) EnumDescriptor ¶
func (Message_MessageType) EnumDescriptor() ([]byte, []int)
func (Message_MessageType) String ¶
func (x Message_MessageType) String() string
type Order ¶
type Order struct { RefundAddress string `protobuf:"bytes,1,opt,name=refundAddress" json:"refundAddress,omitempty"` Shipping *Order_Shipping `protobuf:"bytes,2,opt,name=shipping" json:"shipping,omitempty"` BuyerID *ID `protobuf:"bytes,3,opt,name=buyerID" json:"buyerID,omitempty"` Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"` Items []*Order_Item `protobuf:"bytes,5,rep,name=items" json:"items,omitempty"` Payment *Order_Payment `protobuf:"bytes,6,opt,name=payment" json:"payment,omitempty"` }
func (*Order) Descriptor ¶
func (*Order) GetBuyerID ¶
func (*Order) GetItems ¶
func (m *Order) GetItems() []*Order_Item
func (*Order) GetPayment ¶
func (m *Order) GetPayment() *Order_Payment
func (*Order) GetShipping ¶
func (m *Order) GetShipping() *Order_Shipping
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
type OrderConfirmation ¶
type OrderConfirmation struct { }
TODO: complete other messages
func (*OrderConfirmation) Descriptor ¶
func (*OrderConfirmation) Descriptor() ([]byte, []int)
func (*OrderConfirmation) ProtoMessage ¶
func (*OrderConfirmation) ProtoMessage()
func (*OrderConfirmation) Reset ¶
func (m *OrderConfirmation) Reset()
func (*OrderConfirmation) String ¶
func (m *OrderConfirmation) String() string
type Order_Item ¶
type Order_Item struct { ListingHash []byte `protobuf:"bytes,1,opt,name=listingHash,proto3" json:"listingHash,omitempty"` Quantity uint32 `protobuf:"varint,2,opt,name=quantity" json:"quantity,omitempty"` Options []*Order_Item_Option `protobuf:"bytes,3,rep,name=options" json:"options,omitempty"` }
func (*Order_Item) Descriptor ¶
func (*Order_Item) Descriptor() ([]byte, []int)
func (*Order_Item) GetOptions ¶
func (m *Order_Item) GetOptions() []*Order_Item_Option
func (*Order_Item) ProtoMessage ¶
func (*Order_Item) ProtoMessage()
func (*Order_Item) Reset ¶
func (m *Order_Item) Reset()
func (*Order_Item) String ¶
func (m *Order_Item) String() string
type Order_Item_Option ¶
type Order_Item_Option struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` }
func (*Order_Item_Option) Descriptor ¶
func (*Order_Item_Option) Descriptor() ([]byte, []int)
func (*Order_Item_Option) ProtoMessage ¶
func (*Order_Item_Option) ProtoMessage()
func (*Order_Item_Option) Reset ¶
func (m *Order_Item_Option) Reset()
func (*Order_Item_Option) String ¶
func (m *Order_Item_Option) String() string
type Order_Payment ¶
type Order_Payment struct { Method Order_Payment_Method `protobuf:"varint,1,opt,name=method,enum=Order_Payment_Method" json:"method,omitempty"` Moderator string `protobuf:"bytes,2,opt,name=moderator" json:"moderator,omitempty"` Amount uint32 `protobuf:"varint,3,opt,name=amount" json:"amount,omitempty"` Chaincode string `protobuf:"bytes,4,opt,name=chaincode" json:"chaincode,omitempty"` Address string `protobuf:"bytes,5,opt,name=address" json:"address,omitempty"` RedeemScript string `protobuf:"bytes,6,opt,name=redeemScript" json:"redeemScript,omitempty"` }
func (*Order_Payment) Descriptor ¶
func (*Order_Payment) Descriptor() ([]byte, []int)
func (*Order_Payment) ProtoMessage ¶
func (*Order_Payment) ProtoMessage()
func (*Order_Payment) Reset ¶
func (m *Order_Payment) Reset()
func (*Order_Payment) String ¶
func (m *Order_Payment) String() string
type Order_Payment_Method ¶
type Order_Payment_Method int32
const ( Order_Payment_DIRECT Order_Payment_Method = 0 Order_Payment_MODERATED Order_Payment_Method = 1 )
func (Order_Payment_Method) EnumDescriptor ¶
func (Order_Payment_Method) EnumDescriptor() ([]byte, []int)
func (Order_Payment_Method) String ¶
func (x Order_Payment_Method) String() string
type Order_Shipping ¶
type Order_Shipping struct { ShipTo string `protobuf:"bytes,1,opt,name=shipTo" json:"shipTo,omitempty"` Address string `protobuf:"bytes,2,opt,name=address" json:"address,omitempty"` City string `protobuf:"bytes,3,opt,name=city" json:"city,omitempty"` State string `protobuf:"bytes,4,opt,name=state" json:"state,omitempty"` PostalCode string `protobuf:"bytes,5,opt,name=postalCode" json:"postalCode,omitempty"` Country CountryCode `protobuf:"varint,6,opt,name=country,enum=CountryCode" json:"country,omitempty"` }
func (*Order_Shipping) Descriptor ¶
func (*Order_Shipping) Descriptor() ([]byte, []int)
func (*Order_Shipping) ProtoMessage ¶
func (*Order_Shipping) ProtoMessage()
func (*Order_Shipping) Reset ¶
func (m *Order_Shipping) Reset()
func (*Order_Shipping) String ¶
func (m *Order_Shipping) String() string
type Rating ¶
type Rating struct { }
func (*Rating) Descriptor ¶
func (*Rating) ProtoMessage ¶
func (*Rating) ProtoMessage()
type Refund ¶
type Refund struct { }
func (*Refund) Descriptor ¶
func (*Refund) ProtoMessage ¶
func (*Refund) ProtoMessage()
type RicardianContract ¶
type RicardianContract struct { VendorListings []*Listing `protobuf:"bytes,1,rep,name=vendorListings" json:"vendorListings,omitempty"` BuyerOrder *Order `protobuf:"bytes,2,opt,name=buyerOrder" json:"buyerOrder,omitempty"` VendorOrderConfirmation *OrderConfirmation `protobuf:"bytes,3,opt,name=vendorOrderConfirmation" json:"vendorOrderConfirmation,omitempty"` BuyerRating *Rating `protobuf:"bytes,4,opt,name=buyerRating" json:"buyerRating,omitempty"` Dispute *Dispute `protobuf:"bytes,5,opt,name=dispute" json:"dispute,omitempty"` DisputeResolution *DisputeResolution `protobuf:"bytes,6,opt,name=disputeResolution" json:"disputeResolution,omitempty"` Refund *Refund `protobuf:"bytes,7,opt,name=refund" json:"refund,omitempty"` Signatures []*Signatures `protobuf:"bytes,8,rep,name=signatures" json:"signatures,omitempty"` }
func (*RicardianContract) Descriptor ¶
func (*RicardianContract) Descriptor() ([]byte, []int)
func (*RicardianContract) GetBuyerOrder ¶
func (m *RicardianContract) GetBuyerOrder() *Order
func (*RicardianContract) GetBuyerRating ¶
func (m *RicardianContract) GetBuyerRating() *Rating
func (*RicardianContract) GetDispute ¶
func (m *RicardianContract) GetDispute() *Dispute
func (*RicardianContract) GetDisputeResolution ¶
func (m *RicardianContract) GetDisputeResolution() *DisputeResolution
func (*RicardianContract) GetRefund ¶
func (m *RicardianContract) GetRefund() *Refund
func (*RicardianContract) GetSignatures ¶
func (m *RicardianContract) GetSignatures() []*Signatures
func (*RicardianContract) GetVendorListings ¶
func (m *RicardianContract) GetVendorListings() []*Listing
func (*RicardianContract) GetVendorOrderConfirmation ¶
func (m *RicardianContract) GetVendorOrderConfirmation() *OrderConfirmation
func (*RicardianContract) ProtoMessage ¶
func (*RicardianContract) ProtoMessage()
func (*RicardianContract) Reset ¶
func (m *RicardianContract) Reset()
func (*RicardianContract) String ¶
func (m *RicardianContract) String() string
type Signatures ¶
type Signatures struct { Section Signatures_Section `protobuf:"varint,1,opt,name=section,enum=Signatures_Section" json:"section,omitempty"` Guid []byte `protobuf:"bytes,2,opt,name=guid,proto3" json:"guid,omitempty"` Bitcoin []byte `protobuf:"bytes,3,opt,name=bitcoin,proto3" json:"bitcoin,omitempty"` }
func (*Signatures) Descriptor ¶
func (*Signatures) Descriptor() ([]byte, []int)
func (*Signatures) ProtoMessage ¶
func (*Signatures) ProtoMessage()
func (*Signatures) Reset ¶
func (m *Signatures) Reset()
func (*Signatures) String ¶
func (m *Signatures) String() string
type Signatures_Section ¶
type Signatures_Section int32
const ( Signatures_NA Signatures_Section = 0 Signatures_LISTING Signatures_Section = 1 Signatures_ORDER Signatures_Section = 2 Signatures_ORDER_CONFIRMATION Signatures_Section = 3 Signatures_RATING Signatures_Section = 4 Signatures_DISPUTE Signatures_Section = 5 Signatures_DISPUTE_RESOLUTION Signatures_Section = 6 Signatures_REFUND Signatures_Section = 7 )
func (Signatures_Section) EnumDescriptor ¶
func (Signatures_Section) EnumDescriptor() ([]byte, []int)
func (Signatures_Section) String ¶
func (x Signatures_Section) String() string
Click to show internal directories.
Click to hide internal directories.