factory

package
v0.0.0-...-8d0bd56 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustLoadListingFixture

func MustLoadListingFixture(fixtureName string) []byte

MustLoadListingFixture - load listing json from fixtures

func MustLoadProfileFixture

func MustLoadProfileFixture(fixtureName string) []byte

func MustNewBitcoinPrivKey

func MustNewBitcoinPrivKey() *btcec.PrivateKey

func MustNewCurrencyValue

func MustNewCurrencyValue(amount, code string) *repo.CurrencyValue

func MustNewCurrencyValueUsingDiv

func MustNewCurrencyValueUsingDiv(amount, code string, customDiv uint) *repo.CurrencyValue

func MustNewPeerIDProtobuf

func MustNewPeerIDProtobuf() *pb.ID

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

func MustNewProfile

func MustNewProfile() *repo.Profile

func MustNewProfileProtobuf

func MustNewProfileProtobuf() *pb.Profile

func MustNewPubkeysIdentityKeyBytes

func MustNewPubkeysIdentityKeyBytes() []byte

func MustNewPubkeysProtobuf

func MustNewPubkeysProtobuf(bitcoinKey *btcec.PrivateKey) *pb.ID_Pubkeys

func MustNewValidPeerInfo

func MustNewValidPeerInfo() *repo.PeerInfo

NewValidPeerInfo returns a PeerInfo example that is known to be valid

func MustNewValidSettings

func MustNewValidSettings() repo.SettingsData

func NewAPITime

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

func NewContract

func NewContract() *pb.RicardianContract

func NewCryptoListing

func NewCryptoListing(slug string) *pb.Listing

NewCryptoListing - return new crypto listing

func NewCurrencyConverter

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

func NewCurrencyDefinition

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 NewListing

func NewListing(slug string) *pb.Listing

NewListing - return new pb.Listing

func NewListingWithShippingRegions

func NewListingWithShippingRegions(slug string) *pb.Listing

NewListingWithShippingRegions - return new listing with shipping region

func NewMessageWithOrderPayload

func NewMessageWithOrderPayload() repo.Message

func NewPeerIDProtobuf

func NewPeerIDProtobuf() *pb.ID

func NewPurchaseRecord

func NewPurchaseRecord() *repo.PurchaseRecord

func NewSaleRecord

func NewSaleRecord() *repo.SaleRecord

func NewUndisputeableContract

func NewUndisputeableContract() *pb.RicardianContract

func NewUtxo

func NewUtxo() wallet.Utxo

func NewValidShippingAddress

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