This commit is contained in:
14
internal/beacon/types.go
Normal file
14
internal/beacon/types.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package beacon
|
||||
|
||||
import "git.send.nrw/sendnrw/decent-websrv/internal/mesh"
|
||||
|
||||
type RegisterReq struct {
|
||||
BaseURL string `json:"public_url"`
|
||||
MeshURL string `json:"mesh_url"`
|
||||
NodeID string `json:"node_id"`
|
||||
TTL int `json:"ttl"`
|
||||
}
|
||||
|
||||
type PeersResp struct {
|
||||
Peers []mesh.NodeInfo `json:"peers"`
|
||||
}
|
||||
Reference in New Issue
Block a user