Documentation ¶
Index ¶
- func MustLoadListingFixture(fixtureName string) []byte
- func MustLoadProfileFixture(fixtureName string) []byte
- func MustNewBitcoinPrivKey() *btcec.PrivateKey
- func MustNewCurrencyValue(amount, code string) *repo.CurrencyValue
- func MustNewCurrencyValueUsingDiv(amount, code string, customDiv uint) *repo.CurrencyValue
- func MustNewPeerIDProtobuf() *pb.ID
- func MustNewProfile() *repo.Profile
- func MustNewProfileProtobuf() *pb.Profile
- func MustNewPubkeysIdentityKeyBytes() []byte
- func MustNewPubkeysProtobuf(bitcoinKey *btcec.PrivateKey) *pb.ID_Pubkeys
- func MustNewValidPeerInfo() *repo.PeerInfo
- func MustNewValidSettings() repo.SettingsData
- func NewAPITime(t time.Time) *repo.APITime
- func NewContract() *pb.RicardianContract
- func NewCryptoListing(slug string) *pb.Listing
- func NewCurrencyConverter(reserveCode string, mockRates map[string]float64) (*repo.CurrencyConverter, error)
- func NewCurrencyDefinition(code string) repo.CurrencyDefinition
- func NewDisputeCaseRecord() *repo.DisputeCaseRecord
- func NewDisputeableContract() *pb.RicardianContract
- func NewDisputedContract() *pb.RicardianContract
- func NewExpiredDisputeCaseRecord() *repo.DisputeCaseRecord
- func NewExpiredDisputeablePurchaseRecord() *repo.PurchaseRecord
- func NewExpiredPurchaseRecord() *repo.PurchaseRecord
- func NewImage() *pb.Listing_Item_Image
- func NewListing(slug string) *pb.Listing
- func NewListingWithShippingRegions(slug string) *pb.Listing
- func NewMessageWithOrderPayload() repo.Message
- func NewPeerIDProtobuf() *pb.ID
- func NewPurchaseRecord() *repo.PurchaseRecord
- func NewSaleRecord() *repo.SaleRecord
- func NewUndisputeableContract() *pb.RicardianContract
- func NewUtxo() wallet.Utxo
- func NewValidShippingAddress() repo.ShippingAddress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustLoadListingFixture ¶ added in v0.14.0
MustLoadListingFixture - load listing json from fixtures
func MustLoadProfileFixture ¶ added in v0.14.0
func MustNewBitcoinPrivKey ¶ added in v0.14.0
func MustNewBitcoinPrivKey() *btcec.PrivateKey
func MustNewCurrencyValue ¶ added in v0.14.0
func MustNewCurrencyValue(amount, code string) *repo.CurrencyValue
func MustNewCurrencyValueUsingDiv ¶ added in v0.14.0
func MustNewCurrencyValueUsingDiv(amount, code string, customDiv uint) *repo.CurrencyValue
func MustNewPeerIDProtobuf ¶ added in v0.14.0
MustNewPeerIDProtobuf returns a PeerID protobuf example that is known to be valid
func MustNewProfile ¶ added in v0.14.0
func MustNewProfileProtobuf ¶ added in v0.14.0
func MustNewPubkeysIdentityKeyBytes ¶ added in v0.14.0
func MustNewPubkeysIdentityKeyBytes() []byte
func MustNewPubkeysProtobuf ¶ added in v0.14.0
func MustNewPubkeysProtobuf(bitcoinKey *btcec.PrivateKey) *pb.ID_Pubkeys
func MustNewValidPeerInfo ¶ added in v0.14.0
NewValidPeerInfo returns a PeerInfo example that is known to be valid
func MustNewValidSettings ¶ added in v0.14.0
func MustNewValidSettings() repo.SettingsData
func NewContract ¶ added in v0.12.1
func NewContract() *pb.RicardianContract
func NewCryptoListing ¶
NewCryptoListing - return new crypto listing
func NewCurrencyConverter ¶ added in v0.14.0
func NewCurrencyDefinition ¶ added in v0.13.1
func NewCurrencyDefinition(code string) repo.CurrencyDefinition
func NewDisputeCaseRecord ¶ added in v0.12.1
func NewDisputeCaseRecord() *repo.DisputeCaseRecord
func NewDisputeableContract ¶ added in v0.12.1
func NewDisputeableContract() *pb.RicardianContract
func NewDisputedContract ¶ added in v0.12.1
func NewDisputedContract() *pb.RicardianContract
func NewExpiredDisputeCaseRecord ¶ added in v0.12.1
func NewExpiredDisputeCaseRecord() *repo.DisputeCaseRecord
func NewExpiredDisputeablePurchaseRecord ¶ added in v0.12.1
func NewExpiredDisputeablePurchaseRecord() *repo.PurchaseRecord
func NewExpiredPurchaseRecord ¶ added in v0.12.1
func NewExpiredPurchaseRecord() *repo.PurchaseRecord
func NewImage ¶
func NewImage() *pb.Listing_Item_Image
func NewListingWithShippingRegions ¶ added in v0.13.0
NewListingWithShippingRegions - return new listing with shipping region
func NewMessageWithOrderPayload ¶ added in v0.14.0
func NewPeerIDProtobuf ¶ added in v0.14.0
func NewPurchaseRecord ¶ added in v0.12.1
func NewPurchaseRecord() *repo.PurchaseRecord
func NewSaleRecord ¶ added in v0.12.1
func NewSaleRecord() *repo.SaleRecord
func NewUndisputeableContract ¶ added in v0.12.1
func NewUndisputeableContract() *pb.RicardianContract
func NewValidShippingAddress ¶ added in v0.14.0
func NewValidShippingAddress() repo.ShippingAddress
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.