Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Solender committed Sep 8, 2020
1 parent 5ac110a commit d63f5dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions model.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type neoEdgeConfig struct {
Type string
}

// NodeWrap wraps the neo4j node struct because it is private
type NodeWrap struct {
Id int64 `json:"id"`
Labels []string `json:"labels"`
Expand All @@ -50,6 +51,7 @@ func newNodeWrap(node neo4j.Node) *NodeWrap {
}
}

// PathWrap wraps the neo4j path struct because it is private
type PathWrap struct {
Nodes []*NodeWrap `json:"nodes"`
RelNodes []*RelationshipWrap `json:"rel_nodes"`
Expand Down Expand Up @@ -80,6 +82,7 @@ func newPathWrap(path neo4j.Path) *PathWrap {
return pw
}

// RelationshipWrap wraps the neo4j relationship struct because it is private
type RelationshipWrap struct {
Id int64 `json:"id"`
StartId int64 `json:"start_id"`
Expand Down

0 comments on commit d63f5dc

Please sign in to comment.