Documentation ¶
Index ¶
- Constants
- func IsEntity(v interface{}) bool
- func ParseStruct(entity Entity, target interface{}) error
- type AGErrorListener
- type AGUnmarshaler
- type AgeError
- type AgeParseError
- type Config
- type Cursor
- type CursorProvider
- type CypherCursor
- type CypherMapCursor
- type Driver
- type Edge
- type Entity
- type GTYPE
- type LabeledEntity
- type MapPath
- type Mapper
- type Path
- type SimpleEntity
- func (e *SimpleEntity) AsArr() []interface{}
- func (e *SimpleEntity) AsBigFloat() *big.Float
- func (e *SimpleEntity) AsBigInt() *big.Int
- func (e *SimpleEntity) AsBool() bool
- func (e *SimpleEntity) AsFloat() float64
- func (e *SimpleEntity) AsInt() int
- func (e *SimpleEntity) AsInt64() int64
- func (e *SimpleEntity) AsMap() map[string]interface{}
- func (e *SimpleEntity) AsStr() string
- func (e *SimpleEntity) GType() GTYPE
- func (e *SimpleEntity) IsNull() bool
- func (e *SimpleEntity) String() string
- func (e *SimpleEntity) Value() interface{}
- type Tx
- type UnmarshalVisitor
- func (v *UnmarshalVisitor) Visit(tree antlr.ParseTree) interface{}
- func (v *UnmarshalVisitor) VisitAgeout(ctx *parser.AgeoutContext) interface{}
- func (v *UnmarshalVisitor) VisitArr(ctx *parser.ArrContext) interface{}
- func (v *UnmarshalVisitor) VisitChildren(node antlr.RuleNode) interface{}
- func (v *UnmarshalVisitor) VisitEdge(ctx *parser.EdgeContext) interface{}
- func (v *UnmarshalVisitor) VisitErrorNode(node antlr.ErrorNode) interface{}
- func (v *UnmarshalVisitor) VisitPair(ctx *parser.PairContext) interface{}
- func (v *UnmarshalVisitor) VisitPath(ctx *parser.PathContext) interface{}
- func (v *UnmarshalVisitor) VisitProperties(ctx *parser.PropertiesContext) interface{}
- func (v *UnmarshalVisitor) VisitTerminal(node antlr.TerminalNode) interface{}
- func (v *UnmarshalVisitor) VisitValue(ctx *parser.ValueContext) interface{}
- func (v *UnmarshalVisitor) VisitVertex(ctx *parser.VertexContext) interface{}
- type Unmarshaller
- type Vertex
- type Visitor
- func (v *Visitor) PutType(label string, tp reflect.Type)
- func (v *Visitor) VisitAgeout(ctx *parser.AgeoutContext) interface{}
- func (v *Visitor) VisitChildren(node antlr.RuleNode) interface{}
- func (v *Visitor) VisitEdge(ctx *parser.EdgeContext) interface{}
- func (v *Visitor) VisitPath(ctx *parser.PathContext) interface{}
- func (v *Visitor) VisitVertex(ctx *parser.VertexContext) interface{}
Constants ¶
View Source
const MaxInt = int(MaxUint >> 1)
View Source
const MaxUint = ^uint(0)
View Source
const MinInt = -MaxInt - 1
View Source
const MinUint = 0
Variables ¶
This section is empty.
Functions ¶
func ParseStruct ¶
Types ¶
type AGErrorListener ¶
type AGErrorListener struct { *antlr.DefaultErrorListener // contains filtered or unexported fields }
func NewAGErrorListener ¶
func NewAGErrorListener() *AGErrorListener
func (*AGErrorListener) SyntaxError ¶
func (el *AGErrorListener) SyntaxError(recognizer antlr.Recognizer, offendingSymbol interface{}, line, column int, msg string, e antlr.RecognitionException)
type AGUnmarshaler ¶
type AGUnmarshaler struct { Unmarshaller // contains filtered or unexported fields }
func NewAGUnmarshaler ¶
func NewAGUnmarshaler() *AGUnmarshaler
type AgeParseError ¶
type AgeParseError struct {
// contains filtered or unexported fields
}
func (*AgeParseError) Error ¶
func (e *AgeParseError) Error() string
type CypherCursor ¶
type CypherCursor struct { Cursor // contains filtered or unexported fields }
func (*CypherCursor) Close ¶
func (c *CypherCursor) Close() error
func (*CypherCursor) GetRow ¶
func (c *CypherCursor) GetRow() ([]Entity, error)
func (*CypherCursor) Next ¶
func (c *CypherCursor) Next() bool
type CypherMapCursor ¶
type CypherMapCursor struct { CypherCursor // contains filtered or unexported fields }
func (*CypherMapCursor) GetRow ¶
func (c *CypherMapCursor) GetRow() ([]interface{}, error)
type Edge ¶
type Edge struct { *LabeledEntity // contains filtered or unexported fields }
type Entity ¶
Entity object interface for parsed AGE result data : Vertex, Edge, Path and SimpleEntity
type GTYPE ¶
type GTYPE uint8
GTYPE representing entity types for AGE result data : Vertex, Edge, Path and SimpleEntity
type LabeledEntity ¶
type LabeledEntity struct { Entity // contains filtered or unexported fields }
func (*LabeledEntity) Id ¶
func (n *LabeledEntity) Id() int64
func (*LabeledEntity) Label ¶
func (n *LabeledEntity) Label() string
func (*LabeledEntity) Prop ¶
func (n *LabeledEntity) Prop(key string) interface{}
func (*LabeledEntity) Props ¶
func (n *LabeledEntity) Props() map[string]interface{}
return properties
type MapPath ¶
type MapPath struct { Entity // contains filtered or unexported fields }
func NewMapPath ¶
func NewMapPath(entities []interface{}) *MapPath
type Mapper ¶
type Mapper struct {
AGUnmarshaler
}
type Path ¶
type Path struct { Entity // contains filtered or unexported fields }
func (*Path) GetAsVertex ¶
type SimpleEntity ¶
type SimpleEntity struct { Entity // contains filtered or unexported fields }
func NewSimpleEntity ¶
func NewSimpleEntity(value interface{}) *SimpleEntity
func (*SimpleEntity) AsArr ¶
func (e *SimpleEntity) AsArr() []interface{}
func (*SimpleEntity) AsBigFloat ¶
func (e *SimpleEntity) AsBigFloat() *big.Float
func (*SimpleEntity) AsBigInt ¶
func (e *SimpleEntity) AsBigInt() *big.Int
func (*SimpleEntity) AsBool ¶
func (e *SimpleEntity) AsBool() bool
func (*SimpleEntity) AsFloat ¶
func (e *SimpleEntity) AsFloat() float64
func (*SimpleEntity) AsInt ¶
func (e *SimpleEntity) AsInt() int
func (*SimpleEntity) AsInt64 ¶
func (e *SimpleEntity) AsInt64() int64
func (*SimpleEntity) AsMap ¶
func (e *SimpleEntity) AsMap() map[string]interface{}
func (*SimpleEntity) AsStr ¶
func (e *SimpleEntity) AsStr() string
func (*SimpleEntity) GType ¶
func (e *SimpleEntity) GType() GTYPE
func (*SimpleEntity) IsNull ¶
func (e *SimpleEntity) IsNull() bool
func (*SimpleEntity) String ¶
func (e *SimpleEntity) String() string
func (*SimpleEntity) Value ¶
func (e *SimpleEntity) Value() interface{}
type Tx ¶
type Tx interface { Commit() error Rollback() error Exec(columnCount int, cypher string, args ...interface{}) (*CypherCursor, error) ExecMap(columnCount int, cypher string, args ...interface{}) (*CypherMapCursor, error) }
type UnmarshalVisitor ¶
type UnmarshalVisitor struct { parser.AgeVisitor // contains filtered or unexported fields }
func (*UnmarshalVisitor) Visit ¶
func (v *UnmarshalVisitor) Visit(tree antlr.ParseTree) interface{}
func (*UnmarshalVisitor) VisitAgeout ¶
func (v *UnmarshalVisitor) VisitAgeout(ctx *parser.AgeoutContext) interface{}
func (*UnmarshalVisitor) VisitArr ¶
func (v *UnmarshalVisitor) VisitArr(ctx *parser.ArrContext) interface{}
Visit a parse tree produced by AgeParser#arr.
func (*UnmarshalVisitor) VisitChildren ¶
func (v *UnmarshalVisitor) VisitChildren(node antlr.RuleNode) interface{}
func (*UnmarshalVisitor) VisitEdge ¶
func (v *UnmarshalVisitor) VisitEdge(ctx *parser.EdgeContext) interface{}
Visit a parse tree produced by AgeParser#edge.
func (*UnmarshalVisitor) VisitErrorNode ¶
func (v *UnmarshalVisitor) VisitErrorNode(node antlr.ErrorNode) interface{}
func (*UnmarshalVisitor) VisitPair ¶
func (v *UnmarshalVisitor) VisitPair(ctx *parser.PairContext) interface{}
Visit a parse tree produced by AgeParser#pair.
func (*UnmarshalVisitor) VisitPath ¶
func (v *UnmarshalVisitor) VisitPath(ctx *parser.PathContext) interface{}
Visit a parse tree produced by AgeParser#path.
func (*UnmarshalVisitor) VisitProperties ¶
func (v *UnmarshalVisitor) VisitProperties(ctx *parser.PropertiesContext) interface{}
Visit a parse tree produced by AgeParser#properties.
func (*UnmarshalVisitor) VisitTerminal ¶
func (v *UnmarshalVisitor) VisitTerminal(node antlr.TerminalNode) interface{}
func (*UnmarshalVisitor) VisitValue ¶
func (v *UnmarshalVisitor) VisitValue(ctx *parser.ValueContext) interface{}
Visit a parse tree produced by AgeParser#value.
func (*UnmarshalVisitor) VisitVertex ¶
func (v *UnmarshalVisitor) VisitVertex(ctx *parser.VertexContext) interface{}
Visit a parse tree produced by AgeParser#vertex.
type Unmarshaller ¶
type Vertex ¶
type Vertex struct {
*LabeledEntity
}
type Visitor ¶
type Visitor struct { UnmarshalVisitor // contains filtered or unexported fields }
func (*Visitor) VisitAgeout ¶
func (v *Visitor) VisitAgeout(ctx *parser.AgeoutContext) interface{}
func (*Visitor) VisitChildren ¶
func (v *Visitor) VisitChildren(node antlr.RuleNode) interface{}
func (*Visitor) VisitEdge ¶
func (v *Visitor) VisitEdge(ctx *parser.EdgeContext) interface{}
Visit a parse tree produced by AgeParser#edge.
func (*Visitor) VisitPath ¶
func (v *Visitor) VisitPath(ctx *parser.PathContext) interface{}
func (*Visitor) VisitVertex ¶
func (v *Visitor) VisitVertex(ctx *parser.VertexContext) interface{}
Click to show internal directories.
Click to hide internal directories.