Documentation
¶
Index ¶
- Variables
- func MarketplaceTxHandler(bus Bus) marketplace.Handler
- func MarketplaceTxPublisher(ctx context.Context, log log.Logger, tmbus tmtmtypes.EventBusSubscriber, ...) (marketplace.Monitor, error)
- type Bus
- type Event
- type LeaseWon
- type ManifestReceived
- type Subscriber
- type TxCloseDeployment
- type TxCloseFulfillment
- type TxCreateFulfillment
- type TxCreateLease
- type TxCreateOrder
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotRunning = errors.New("not running")
Functions ¶
func MarketplaceTxHandler ¶
func MarketplaceTxHandler(bus Bus) marketplace.Handler
func MarketplaceTxPublisher ¶
func MarketplaceTxPublisher(ctx context.Context, log log.Logger, tmbus tmtmtypes.EventBusSubscriber, bus Bus) (marketplace.Monitor, error)
Types ¶
type Bus ¶
type Bus interface {
Publish(Event) error
Subscribe() (Subscriber, error)
Close()
Done() <-chan struct{}
}
type LeaseWon ¶
type LeaseWon struct {
LeaseID types.LeaseID
Group *types.DeploymentGroup
Price uint32
}
type ManifestReceived ¶
type Subscriber ¶
type Subscriber interface {
Events() <-chan Event
Clone() (Subscriber, error)
Close()
Done() <-chan struct{}
}
type TxCloseDeployment ¶
type TxCloseDeployment = types.TxCloseDeployment
type TxCloseFulfillment ¶
type TxCloseFulfillment = types.TxCloseFulfillment
type TxCreateFulfillment ¶
type TxCreateFulfillment = types.TxCreateFulfillment
type TxCreateLease ¶
type TxCreateLease = types.TxCreateLease
type TxCreateOrder ¶
type TxCreateOrder = types.TxCreateOrder
Click to show internal directories.
Click to hide internal directories.