Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DividePeerMessages ¶
func GenerateName ¶
func GenerateName() string
Types ¶
type MQSettings ¶
type PeerOperations ¶
type Publisher ¶
type Publisher struct { PeerOperations Id int NrMessagesToPublish uint MessageSize uint64 Results *Result SyncMutex *sync.Mutex SyncCond *sync.Cond NrReadyPeers *int NrDonePeers *int SubNrConsumedMessagesArr []*uint SubscriberDoneArr []*bool NrPublishers int }
func (*Publisher) StartPublishing ¶
type Results ¶
func (*Results) PrintResults ¶
func (results *Results) PrintResults()
type Subscriber ¶
type Subscriber struct { PeerOperations Id int NrMessagesToConsume uint MessageSize int64 HasStarted bool Started int64 Stopped int64 Results *Result SyncMutex *sync.Mutex SyncCond *sync.Cond NrReadyPeers *int NrDonePeers *int NrMessagesConsumed *uint SubscriberDone *bool }
func (*Subscriber) StartSubscribing ¶
func (subscriber *Subscriber) StartSubscribing(nrPeers int)
Click to show internal directories.
Click to hide internal directories.