aboutsummaryrefslogtreecommitdiff
path: root/auction.go
diff options
context:
space:
mode:
Diffstat (limited to 'auction.go')
-rw-r--r--auction.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/auction.go b/auction.go
index 32e9758..4cdbe82 100644
--- a/auction.go
+++ b/auction.go
@@ -73,10 +73,12 @@ func (d *Description) validate() error {
return nil
}
+type Message []byte
+
type Auction interface {
Start() error
Cancel() error
- Message(msg []byte) error
+ Message(msg Message) error
}
type Result struct {
@@ -113,10 +115,11 @@ func (a *auction) Cancel() error {
return errors.New("Cancel not implemented")
}
-// Message is called by the Bidder or Visitor
+
+// Message is called by the Bidder or Observer
// whenever a message came in for the auction via the dashboard
// or other means of communication.
-func (a *auction) Message(msg []byte) error {
+func (a *auction) Message(msg Message) error {
return fmt.Errorf("Auction.Received not implemented")
}