mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:21:50 +00:00
22 lines
290 B
Go
22 lines
290 B
Go
package protocol
|
|
|
|
type Next struct {
|
|
Edge
|
|
OutV uint64 `json:"outV"`
|
|
InV uint64 `json:"inV"`
|
|
}
|
|
|
|
func NewNext(id, outV, inV uint64) Next {
|
|
return Next{
|
|
Edge: Edge{
|
|
Element: Element{
|
|
ID: id,
|
|
Type: ElementEdge,
|
|
},
|
|
Label: EdgeNext,
|
|
},
|
|
OutV: outV,
|
|
InV: inV,
|
|
}
|
|
}
|