cursor

package
v1.1.0-beta.0...-57a73ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

type Handle interface {
	ID() int
	GetState() State
	Close()
}

Handle is used to update/close the cursor.

type State

type State struct {
	StartTS uint64
}

State is used to store the state of cursor

type Tracker

type Tracker interface {
	NewCursor(state State) Handle
	GetCursor(id int) Handle
	RangeCursor(f func(cursor Handle) bool)
}

Tracker is used to track the state of cursor inside a session

func NewTracker

func NewTracker() Tracker

NewTracker creates a new cursor tracker

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL