slice

package
v0.0.0-...-4f8e3ed Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cursor

type Cursor struct {
	// contains filtered or unexported fields
}

Cursor implement a cursor for an arbitary slice type

func NewCursor

func NewCursor(slice interface{}) (*Cursor, error)

NewCursor returns a new cursor

func (*Cursor) Close

func (cur *Cursor) Close(ctx context.Context) error

func (*Cursor) Next

func (cur *Cursor) Next(ctx context.Context) (interface{}, error)

func (*Cursor) Position

func (cur *Cursor) Position(ctx context.Context) (int32, error)

func (*Cursor) Skip

func (cur *Cursor) Skip(ctx context.Context, n int32) error

Jump to

Keyboard shortcuts

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