New returns a new initialized node with the given etcd node.
(node *etcd.Node)
| 18 | |
| 19 | // New returns a new initialized node with the given etcd node. |
| 20 | func NewNode(node *etcd.Node) *Node { |
| 21 | return &Node{ |
| 22 | Node: node, |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | // HasValue returns true if the give node has a non-empty value |
| 27 | func (n *Node) HasValue() bool { |
no outgoing calls
no test coverage detected