package
0.7.7
Repository: https://github.com/sigma/dgraph.git
Documentation: pkg.go.dev

# Functions

AddInit adds a function to be run in x.Init, which should be called at the beginning of all mains.
AssertTrue asserts that b is true.
AssertTruef is AssertTrue with extra info.
Check logs fatal if err != nil.
Check2 acts as convenience wrapper around Check, using the 2nd argument as error.
Check2f acts as convenience wrapper around Checkf, using the 2nd argument as error.
Checkf is Check with extra info.
No description provided by the author
Errorf creates a new error with stack trace, etc.
Fatalf logs fatal.
GenerateTLSConfig creates and returns a new *tls.Config with the configuration provided.
No description provided by the author
Init initializes flags and run all functions in initFunc.
No description provided by the author
PageRange returns start and end indices given pagination params.
No description provided by the author
No description provided by the author
Printf does a log.Printf.
Reads a single line from a buffered reader.
No description provided by the author
No description provided by the author
Go doesn't have a round function for Duration and the duration value can be a bit ugly to look at sometimes.
SchemaKey returns schema key for given attribute, schema keys are stored separately with unique prefix, since we need to iterate over all schema keys.
SchemaPrefix returns the prefix for Schema keys.
SetError sets the error logged in this package.
SetStatus sets the error code, message and the newly assigned uids in the http response.
No description provided by the author
No description provided by the author
TraceError is like Trace but it logs just an error, which may have stacktrace.
ValidateAddress checks whether given address can be used with grpc dial function.
Helper function, to decide value type of DirectedEdge/Posting/NQuad.
No description provided by the author
Wrap wraps errors from external lib.
Wrapf is Wrap with extra info.

# Constants

Error constants representing different types of errors.
Error constants representing different types of errors.
Error constants representing different types of errors.
Error constants representing different types of errors.
Error constants representing different types of errors.
Error constants representing different types of errors.
Error constants representing different types of errors.
Error constants representing different types of errors.
Error constants representing different types of errors.
Error constants representing different types of errors.
Error constants representing different types of errors.
Error constants representing different types of errors.
No description provided by the author
No description provided by the author
Error constants representing different types of errors.
no UID and no value.
Value which is part of a multi-value posting list (like language).
plain old value without defined language tag.
UID.
unknown type of value.

# Variables

No description provided by the author
WhiteSpace Replacer removes spaces and tabs from a string.

# Structs

Mark contains raft proposal id and a done boolean.
No description provided by the author
RaftValue contains the raft group and the raft proposal id.
SafeLock can be used in place of sync.RWMutex.
No description provided by the author
No description provided by the author
TLSHelperConfig define params used to create a tls.Config.
WaterMark is used to keep track of the maximum done index.

# Type aliases

No description provided by the author