Documentation ¶
Index ¶
- Variables
- type GremlinQueryHelper
- func (g *GremlinQueryHelper) GetEdges(query interface{}) ([]*graph.Edge, error)
- func (g *GremlinQueryHelper) GetInt64(query interface{}) (int64, error)
- func (g *GremlinQueryHelper) GetNode(query interface{}) (node *graph.Node, _ error)
- func (g *GremlinQueryHelper) GetNodes(query interface{}) ([]*graph.Node, error)
- func (g *GremlinQueryHelper) Query(query interface{}) ([]byte, error)
- func (g *GremlinQueryHelper) Request(query interface{}, header http.Header) (*http.Response, error)
- type JSONPatch
- type Operation
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoResult = errors.New("no result")
ErrNoResult is returned when a query returned no result
Functions ¶
This section is empty.
Types ¶
type GremlinQueryHelper ¶
type GremlinQueryHelper struct {
// contains filtered or unexported fields
}
GremlinQueryHelper describes a gremlin query request query helper mechanism
func NewGremlinQueryHelper ¶
func NewGremlinQueryHelper(restClient *shttp.RestClient) *GremlinQueryHelper
NewGremlinQueryHelper creates a new Gremlin query helper based on authentication
func (*GremlinQueryHelper) GetEdges ¶
func (g *GremlinQueryHelper) GetEdges(query interface{}) ([]*graph.Edge, error)
GetEdges from the Gremlin query
func (*GremlinQueryHelper) GetInt64 ¶
func (g *GremlinQueryHelper) GetInt64(query interface{}) (int64, error)
GetInt64 parse the query result as int64
func (*GremlinQueryHelper) GetNode ¶
func (g *GremlinQueryHelper) GetNode(query interface{}) (node *graph.Node, _ error)
GetNode from the Gremlin query
func (*GremlinQueryHelper) GetNodes ¶
func (g *GremlinQueryHelper) GetNodes(query interface{}) ([]*graph.Node, error)
GetNodes from the Gremlin query
func (*GremlinQueryHelper) Query ¶
func (g *GremlinQueryHelper) Query(query interface{}) ([]byte, error)
Query queries the topology API
Click to show internal directories.
Click to hide internal directories.