Value returns the value associated with the current node.
()
| 86 | |
| 87 | // Value returns the value associated with the current node. |
| 88 | func (n *Node) Value() (kontrolprotocol.RegisterValue, error) { |
| 89 | var rv kontrolprotocol.RegisterValue |
| 90 | err := json.Unmarshal([]byte(n.Node.Value), &rv) |
| 91 | return rv, err |
| 92 | } |
| 93 | |
| 94 | // Kites returns a list of kites that are gathered by collecting recursively |
| 95 | // all nodes under the current node. |