Categorygofr.dev/pkg/gofr/datasource/dgraph
modulepackage
0.2.0
Repository: https://github.com/gofr-dev/gofr.git
Documentation: pkg.go.dev

# Functions

New creates a new Dgraph client with the given configuration.
NewDgraphClient returns a new Dgraph client.
NewMockDgraphClient creates a new mock instance.
NewMockLogger creates a new mock instance.
NewMockMetrics creates a new mock instance.
NewMockTxn creates a new mock instance.

# Structs

Client represents the Dgraph client with logging and metrics.
Config holds the configuration for connecting to Dgraph.
MockDgraphClient is a mock of DgraphClient interface.
MockDgraphClientMockRecorder is the mock recorder for MockDgraphClient.
MockLogger is a mock of Logger interface.
MockLoggerMockRecorder is the mock recorder for MockLogger.
MockMetrics is a mock of Metrics interface.
MockMetricsMockRecorder is the mock recorder for MockMetrics.
MockTxn is a mock of Txn interface.
MockTxnMockRecorder is the mock recorder for MockTxn.
No description provided by the author
QueryLog represents the structure for query logging.

# Interfaces

DgraphClient is an interface that defines the methods for interacting with Dgraph.
Logger interface with required methods.
No description provided by the author
Txn is an interface for Dgraph transactions.

# Type aliases

No description provided by the author
No description provided by the author