Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteProto ¶ added in v0.2.0
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner provides streaming operations on badger.DB.
func (*Runner) Process ¶
func (r *Runner) Process( ctx context.Context, cancel context.CancelCauseFunc, process Process, ) (*sync.WaitGroup, error)
Process runs process on each Value in the database. process must be thread-safe as it may be called simultaneously by multiple threads.
Returns a WaitGroup which finishes after the last Value from the DB has been processed.
func (*Runner) ProcessIDs ¶
func (r *Runner) ProcessIDs( ctx context.Context, cancel context.CancelCauseFunc, process Process, ids <-chan uint32, ) (*sync.WaitGroup, error)
ProcessIDs runs process on each id's corresponding value. process must be thread-safe as it may be called simultaneously by multiple threads.
Returns a WaitGroup which finishes after the last id has been processed.
Click to show internal directories.
Click to hide internal directories.