Documentation ¶
Index ¶
- Variables
- func Output(input string)
- func Start(id int32, port string)
- type HighestBidder
- type Server
- func (s *Server) Bid(stream protos.AuctionhouseService_BidServer) error
- func (s *Server) HandleNewBidForClient(fin chan (bool), srv protos.AuctionhouseService_BidServer)
- func (s *Server) Result(stream protos.AuctionhouseService_ResultServer) error
- func (s *Server) SendBidStatusToClient(stream protos.AuctionhouseService_BidServer, currentBidderID int32, ...)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ID int32
)
Functions ¶
Types ¶
type HighestBidder ¶
type Server ¶
type Server struct { protos.UnimplementedAuctionhouseServiceServer // contains filtered or unexported fields }
func (*Server) HandleNewBidForClient ¶
func (s *Server) HandleNewBidForClient(fin chan (bool), srv protos.AuctionhouseService_BidServer)
TODO ... skal modtage fra client of forwarde ti replicas.
func (*Server) Result ¶
func (s *Server) Result(stream protos.AuctionhouseService_ResultServer) error
When time has runned out : brodcast who the winner is
func (*Server) SendBidStatusToClient ¶
func (s *Server) SendBidStatusToClient(stream protos.AuctionhouseService_BidServer, currentBidderID int32, currentBid int32)
TODO
Click to show internal directories.
Click to hide internal directories.