auction_nats_client

package
v0.0.0-...-8178c74 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2014 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RequestFailedError = errors.New("request failed")

Functions

This section is empty.

Types

type AuctionNATSClient

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

func New

func New(natsClient yagnats.NATSClient, timeout time.Duration, runTimeout time.Duration, logger lager.Logger) (*AuctionNATSClient, error)

func (*AuctionNATSClient) BidForStartAuction

func (rep *AuctionNATSClient) BidForStartAuction(repGuids []string, startAuctionInfo auctiontypes.StartAuctionInfo) auctiontypes.StartAuctionBids

func (*AuctionNATSClient) BidForStopAuction

func (rep *AuctionNATSClient) BidForStopAuction(repGuids []string, stopAuctionInfo auctiontypes.StopAuctionInfo) auctiontypes.StopAuctionBids

func (*AuctionNATSClient) RebidThenTentativelyReserve

func (rep *AuctionNATSClient) RebidThenTentativelyReserve(repGuids []string, startAuctionInfo auctiontypes.StartAuctionInfo) auctiontypes.StartAuctionBids

func (*AuctionNATSClient) ReleaseReservation

func (rep *AuctionNATSClient) ReleaseReservation(repGuids []string, startAuctionInfo auctiontypes.StartAuctionInfo)

func (*AuctionNATSClient) Reset

func (rep *AuctionNATSClient) Reset(repGuid string)

func (*AuctionNATSClient) Run

func (rep *AuctionNATSClient) Run(repGuid string, startAuction models.LRPStartAuction)

func (*AuctionNATSClient) SetSimulatedInstances

func (rep *AuctionNATSClient) SetSimulatedInstances(repGuid string, instances []auctiontypes.SimulatedInstance)

func (*AuctionNATSClient) SimulatedInstances

func (rep *AuctionNATSClient) SimulatedInstances(repGuid string) []auctiontypes.SimulatedInstance

func (*AuctionNATSClient) Stop

func (rep *AuctionNATSClient) Stop(repGuid string, stopInstance models.StopLRPInstance)

func (*AuctionNATSClient) TotalResources

func (rep *AuctionNATSClient) TotalResources(repGuid string) auctiontypes.Resources

Jump to

Keyboard shortcuts

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