dgraph

package
v0.0.0-...-d9ff241 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dgraph

type Dgraph struct {
	*dgo.Dgraph
	// contains filtered or unexported fields
}

Dgraph ...

func NewDgraph

func NewDgraph() (*Dgraph, error)

NewDgraph ...

func (*Dgraph) CheckHealth

func (dg *Dgraph) CheckHealth(ctx context.Context) (interface{}, error)

CheckHealth ...

func (*Dgraph) Do

func (dg *Dgraph) Do(ctx context.Context, query string, vars map[string]string, out interface{}, mus ...*api.Mutation) error

Do ...

func (*Dgraph) Query

func (dg *Dgraph) Query(ctx context.Context, query string, vars map[string]string, out interface{}) error

Query ...

func (*Dgraph) RunTxn

func (dg *Dgraph) RunTxn(ctx context.Context, fn func(txn *dgo.Txn) error) error

RunTxn ...

type Nquads

type Nquads struct {
	ID    string
	Type  string
	UKkey string
	UKval string
	KV    map[string]interface{}
}

Nquads ...

func (Nquads) Bytes

func (ns Nquads) Bytes() ([]byte, error)

Bytes ...

type WithFacets

type WithFacets struct {
	V  interface{}
	KV map[string]interface{}
}

WithFacets ...

func (WithFacets) String

func (fs WithFacets) String() string

type WithLang

type WithLang struct {
	V string
	L string
}

WithLang ...

func (WithLang) String

func (l WithLang) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL