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
Click to show internal directories.
Click to hide internal directories.