1
0
forked from extern/smegmesh
smegmesh/pkg/automerge/types.go

17 lines
501 B
Go
Raw Normal View History

2023-10-05 18:48:54 +02:00
package crdt
import "github.com/automerge/automerge-go"
2023-10-05 18:48:54 +02:00
type MeshNodeCrdt struct {
HostEndpoint string `automerge:"hostEndpoint"`
WgEndpoint string `automerge:"wgEndpoint"`
PublicKey string `automerge:"publicKey"`
WgHost string `automerge:"wgHost"`
FailedCount *automerge.Counter `automerge:"failedCount"`
FailedInt int `automerge:"-"`
2023-10-05 18:48:54 +02:00
}
type MeshCrdt struct {
Nodes map[string]MeshNodeCrdt `automerge:"nodes"`
}