repo

package
v0.0.0-...-f810e02 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDgraphSchemaRepository

func NewDgraphSchemaRepository(pool GrpcPool) schema.Repository

NewDgraphSchemaRepository creates new schema repository interface for accessing Dgraph.

func NewFileSchemaRepository

func NewFileSchemaRepository(fs afero.Fs, schemaPath string) schema.Repository

NewFileSchemaRepository creates new schema repository interface for accessing Dgraph.

Types

type GrpcPool

type GrpcPool interface {
	Get() (*grpc.ClientConn, error)
}

GrpcPool pools gRPC client connections

func NewGrpcPool

func NewGrpcPool(url string) GrpcPool

NewGrpcPool creates GrpcPool instance

Jump to

Keyboard shortcuts

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