mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2024-12-13 18:11:25 +01:00
17 lines
483 B
Go
17 lines
483 B
Go
package crdt
|
|
|
|
import "github.com/automerge/automerge-go"
|
|
|
|
type MeshNodeCrdt struct {
|
|
HostEndpoint string `automerge:"hostEndpoint"`
|
|
WgEndpoint string `automerge:"wgEndpoint"`
|
|
PublicKey string `automerge:"publicKey"`
|
|
WgHost string `automerge:"wgHost"`
|
|
Timestamp int64 `automerge:"timestamp"`
|
|
FailedMap *automerge.Map `automerge:"failedMap"`
|
|
}
|
|
|
|
type MeshCrdt struct {
|
|
Nodes map[string]MeshNodeCrdt `automerge:"nodes"`
|
|
}
|