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.4
MustLoadListingFixture - load listing json from fixtures
func MustLoadProfileFixture ¶ added in v0.14.4
func MustNewBitcoinPrivKey ¶ added in v0.14.4
func MustNewBitcoinPrivKey() *btcec.PrivateKey
func MustNewCurrencyValue ¶ added in v0.14.4
func MustNewCurrencyValue(amount, code string) *repo.CurrencyValue
func MustNewCurrencyValueUsingDiv ¶ added in v0.14.4
func MustNewCurrencyValueUsingDiv(amount, code string, customDiv uint) *repo.CurrencyValue
func MustNewPeerIDProtobuf ¶ added in v0.14.4
MustNewPeerIDProtobuf returns a PeerID protobuf example that is known to be valid
func MustNewProfile ¶ added in v0.14.4
func MustNewProfileProtobuf ¶ added in v0.14.4
func MustNewPubkeysIdentityKeyBytes ¶ added in v0.14.4
func MustNewPubkeysIdentityKeyBytes() []byte
func MustNewPubkeysProtobuf ¶ added in v0.14.4
func MustNewPubkeysProtobuf(bitcoinKey *btcec.PrivateKey) *pb.ID_Pubkeys
func MustNewValidPeerInfo ¶ added in v0.14.4
NewValidPeerInfo returns a PeerInfo example that is known to be valid
func MustNewValidSettings ¶ added in v0.14.4
func MustNewValidSettings() repo.SettingsData
func NewContract ¶
func NewContract() *pb.RicardianContract
func NewCryptoListing ¶
NewCryptoListing - return new crypto listing
func NewCurrencyConverter ¶ added in v0.14.4
func NewCurrencyDefinition ¶ added in v0.14.4
func NewCurrencyDefinition(code string) repo.CurrencyDefinition
func NewDisputeCaseRecord ¶
func NewDisputeCaseRecord() *repo.DisputeCaseRecord
func NewDisputeableContract ¶
func NewDisputeableContract() *pb.RicardianContract
func NewDisputedContract ¶
func NewDisputedContract() *pb.RicardianContract
func NewExpiredDisputeCaseRecord ¶
func NewExpiredDisputeCaseRecord() *repo.DisputeCaseRecord
func NewExpiredDisputeablePurchaseRecord ¶
func NewExpiredDisputeablePurchaseRecord() *repo.PurchaseRecord
func NewExpiredPurchaseRecord ¶
func NewExpiredPurchaseRecord() *repo.PurchaseRecord
func NewImage ¶
func NewImage() *pb.Listing_Item_Image
func NewListingWithShippingRegions ¶ added in v0.14.4
NewListingWithShippingRegions - return new listing with shipping region
func NewMessageWithOrderPayload ¶ added in v0.14.4
func NewPeerIDProtobuf ¶ added in v0.14.4
func NewPurchaseRecord ¶
func NewPurchaseRecord() *repo.PurchaseRecord
func NewSaleRecord ¶
func NewSaleRecord() *repo.SaleRecord
func NewUndisputeableContract ¶
func NewUndisputeableContract() *pb.RicardianContract
func NewValidShippingAddress ¶ added in v0.14.4
func NewValidShippingAddress() repo.ShippingAddress
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.