any-sync/consensus/consensus.go
2022-10-20 14:04:59 +03:00

17 lines
298 B
Go

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