Documentation ¶
Index ¶
- type Dgraph
- func (db *Dgraph) Client() *dgo.Dgraph
- func (db *Dgraph) DeleteInterface(data interface{}) (*api.Response, error)
- func (db *Dgraph) DeleteJSON(data []byte) (*api.Response, error)
- func (db *Dgraph) NodeValueExists(node, value string) bool
- func (db *Dgraph) Query(query string) (*api.Response, error)
- func (db *Dgraph) QueryWithVars(query string, vars map[string]string) (*api.Response, error)
- func (db *Dgraph) SetInterface(data interface{}) (*api.Response, error)
- func (db *Dgraph) SetJSON(data []byte) (*api.Response, error)
- func (db *Dgraph) SetSchema(schema string) error
- type Graph
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dgraph ¶
type Dgraph struct { Dgraph *dgo.Dgraph Conn *grpc.ClientConn // contains filtered or unexported fields }
func (*Dgraph) DeleteInterface ¶
func (*Dgraph) NodeValueExists ¶
func (*Dgraph) QueryWithVars ¶
func (*Dgraph) SetInterface ¶
type Graph ¶
type Graph interface { Client() *dgo.Dgraph SetSchema(schema string) error SetJSON(data []byte) (*api.Response, error) SetInterface(data interface{}) (*api.Response, error) DeleteJSON(data []byte) (*api.Response, error) DeleteInterface(data interface{}) (*api.Response, error) Query(query string) (*api.Response, error) QueryWithVars(query string, vars map[string]string) (*api.Response, error) NodeValueExists(node, value string) bool }
func OpenDgraph ¶
Click to show internal directories.
Click to hide internal directories.