payload.go 414 Bytes
Newer Older
LUXEY Adrien's avatar
LUXEY Adrien committed
1 2 3 4 5
package storyteller

import (
	"gitlab.inria.fr/aluxey/gossip"
	"gitlab.inria.fr/aluxey/transport"
6
	"time"
LUXEY Adrien's avatar
LUXEY Adrien committed
7 8 9 10
)

type Payload struct {
	Sender gossip.Describer
11
	S      map[time.Time]Item
LUXEY Adrien's avatar
LUXEY Adrien committed
12 13 14 15 16
	ID     int32
}

type ActivityPayload struct {
	Sender    gossip.Describer
17
	S         map[time.Time]Item
LUXEY Adrien's avatar
LUXEY Adrien committed
18 19 20 21 22 23 24 25
	MessageID int32
}

type AckPayload struct {
	Sender    gossip.Describer
	Type      transport.MessageType
	MessageID int32
}