dgraph

package
v0.0.0-...-1b5374a 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: 16 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) DoRaw

func (dg *Dgraph) DoRaw(ctx context.Context, query string, vars map[string]string, mus ...*api.Mutation) (*api.Response, error)

DoRaw ...

func (*Dgraph) Query

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

Query ...

func (*Dgraph) QueryBestEffort

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

QueryBestEffort ...

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