package
0.7.1
Repository: https://github.com/dmonay/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
No description provided by the author
Errorf creates a new error with stack trace, etc.
Fatalf logs fatal.
No description provided by the author
Init initializes flags and run all functions in initFunc.
No description provided by the author
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
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
TraceError is like Trace but it logs just an error, which may have stacktrace.
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.

# Variables

No description provided by the author

# 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
WaterMark is used to keep track of the maximum done index.