factory

package
v0.14.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustLoadListingFixture added in v0.14.0

func MustLoadListingFixture(fixtureName string) []byte

MustLoadListingFixture - load listing json from fixtures

func MustLoadProfileFixture added in v0.14.0

func MustLoadProfileFixture(fixtureName string) []byte

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

func MustNewPeerIDProtobuf() *pb.ID

MustNewPeerIDProtobuf returns a PeerID protobuf example that is known to be valid

func MustNewProfile added in v0.14.0

func MustNewProfile() *repo.Profile

func MustNewProfileProtobuf added in v0.14.0

func MustNewProfileProtobuf() *pb.Profile

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

func MustNewValidPeerInfo() *repo.PeerInfo

NewValidPeerInfo returns a PeerInfo example that is known to be valid

func MustNewValidSettings added in v0.14.0

func MustNewValidSettings() repo.SettingsData

func NewAPITime added in v0.13.5

func NewAPITime(t time.Time) *repo.APITime

func NewContract added in v0.12.1

func NewContract() *pb.RicardianContract

func NewCryptoListing

func NewCryptoListing(slug string) *pb.Listing

NewCryptoListing - return new crypto listing

func NewCurrencyConverter added in v0.14.0

func NewCurrencyConverter(reserveCode string, mockRates map[string]float64) (*repo.CurrencyConverter, error)

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 NewListing

func NewListing(slug string) *pb.Listing

NewListing - return new pb.Listing

func NewListingWithShippingRegions added in v0.13.0

func NewListingWithShippingRegions(slug string) *pb.Listing

NewListingWithShippingRegions - return new listing with shipping region

func NewMessageWithOrderPayload added in v0.14.0

func NewMessageWithOrderPayload() repo.Message

func NewPeerIDProtobuf added in v0.14.0

func NewPeerIDProtobuf() *pb.ID

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 NewUtxo added in v0.13.0

func NewUtxo() wallet.Utxo

func NewValidShippingAddress added in v0.14.0

func NewValidShippingAddress() repo.ShippingAddress

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL