File size: 367 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package swomsg

import (
	"encoding/json"
	"time"

	"github.com/google/uuid"
)

// Message represents a single event in the switchover log.
type Message struct {
	ID   uuid.UUID
	Node uuid.UUID
	TS   time.Time `json:"-"`

	Type  string
	Ack   bool            `json:",omitempty"`
	AckID uuid.UUID       `json:",omitempty"`
	Data  json.RawMessage `json:",omitempty"`
}