any-sync/consensus/consensus.go
2022-10-07 11:04:48 +03:00

16 lines
283 B
Go

package consensus
import "time"
type Log struct {
Id []byte `bson:"_id"`
Records []Record `bson:"records"`
}
type Record struct {
Id []byte `bson:"id"`
PrevId []byte `bson:"prevId"`
Payload []byte `bson:"payload"`
Created time.Time `bson:"created"'`
}