HEAD and PATCH to create peers and list all items

This commit is contained in:
Bel LaPointe
2020-07-23 21:45:52 -06:00
parent 5af3f6f7b6
commit 1411171107
3 changed files with 134 additions and 6 deletions

View File

@@ -35,6 +35,16 @@ func (o One) Query() One {
return One{Name: o.Name}
}
func (o One) Peer() One {
return One{
Name: o.Name,
Type: o.Type,
Title: o.Title,
Relationship: o.Relationship,
Modified: o.Modified,
}
}
func (o One) Peers() []string {
names := make([]string, len(o.Connections))
i := 0