mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2024-12-13 01:50:53 +01:00
13 lines
301 B
Go
13 lines
301 B
Go
package crdt
|
|
|
|
type MeshNodeCrdt struct {
|
|
HostEndpoint string `automerge:"hostEndpoint"`
|
|
WgEndpoint string `automerge:"wgEndpoint"`
|
|
PublicKey string `automerge:"publicKey"`
|
|
WgHost string `automerge:"wgHost"`
|
|
}
|
|
|
|
type MeshCrdt struct {
|
|
Nodes map[string]MeshNodeCrdt `automerge:"nodes"`
|
|
}
|