dealermock

package
v0.0.0-...-269d6e4 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dealer

type Dealer struct {
	// contains filtered or unexported fields
}

Dealer provides a mocked implementation of Dealer. It reports successful deals to the broker after 1 sec.

func New

func New(mb mbroker.MsgBroker, h host.Host, relayMaddr string) *Dealer

New returns a new Dealer.

func (*Dealer) ReadyToCreateDeals

func (d *Dealer) ReadyToCreateDeals(ctx context.Context, sdb dealeri.AuctionDeals) error

ReadyToCreateDeals registers deals to execute.

Jump to

Keyboard shortcuts

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