server

package
v0.0.0-...-802464b Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ID int32
)

Functions

func Output

func Output(input string)

func Start

func Start(id int32, port string)

Types

type HighestBidder

type HighestBidder struct {
	HighestBidAmount int32
	HighestBidderID  int32
	// contains filtered or unexported fields
}

type Server

type Server struct {
	protos.UnimplementedAuctionhouseServiceServer
	// contains filtered or unexported fields
}

func (*Server) Bid

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

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

Jump to

Keyboard shortcuts

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