src/server/pkg/hashtree/db.go
func (h *dbHashTree) Get(path string) (*NodeProto, error) {
	path = clean(path)
	var node *NodeProto
	if err := h.View(func(tx *bolt.Tx) error {
		var err error
		node, err = get(tx, path)
		return err
	}); err != nil {
		return nil, err
	}
	return node, nil
}
func (h *dbHashTree) Get(path string) (*NodeProto, error) {
	path = clean(path)
	var node *NodeProto
	if err := h.View(func(tx *bolt.Tx) error {
		var err error
		node, err = get(tx, path)
		return err
	}); err != nil {
		return nil, err
	}
	return node, nil
}
func ( h * dbHashTree ) Get ( path string ) ( * NodeProto , error ) { path = clean ( path ) var node * NodeProto if err := h . View ( func ( tx * bolt . Tx ) error { var err error node , err = get ( tx , path ) return err } ) ; err != nil { return nil , err } return node , nil }
// Get gets a hashtree node.
Get gets a hashtree node .