Documentation ¶
Overview ¶
Package cursor provides access to cursor registry.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NewParams ¶
type NewParams struct { Iter types.DocumentsIterator DB string Collection string BatchSize int32 }
NewParams contains the parameters for creating a new cursor.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry stores cursors.
TODO add cleanup TODO add metrics
func (*Registry) DeleteCursor ¶
DeleteCursor closes and deletes cursor.
func (*Registry) StoreCursor ¶
StoreCursor stores cursor and return its ID.
Click to show internal directories.
Click to hide internal directories.