From 8bbacb9b79fad0fbb16db28019bee2533330b69f Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Sun, 7 Apr 2024 14:11:48 +0200 Subject: auction: add Auction interface --- auction.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/auction.go b/auction.go index aeff7b3..78b9af6 100644 --- a/auction.go +++ b/auction.go @@ -35,8 +35,14 @@ type SignedDesciption struct { SellerSignature string } +// Auction is the simple interface for the engine +type Auction interface { + Join(bidder Bidder) + Received(msg []byte) error +} + // Bidder is the interface that the Auction engine uses to communicate type Bidder interface { Result() - Send(msg []byte, sig []byte) + Send(msg []byte, sig []byte) error } -- cgit v1.2.3