pagination

package
v0.84.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeCursor

func EncodeCursor(t time.Time, uuid uuid.UUID) string

EncodeCursor generates a base64 encoded representation of a timestamp + identifier

Types

type Cursor

type Cursor struct {
	Timestamp *time.Time
	ID        *uuid.UUID
}

type CursorOptions added in v0.80.0

type CursorOptions struct {
	Cursor *Cursor
	Limit  int
}

func NewCursor added in v0.80.0

func NewCursor(c string, l int) (*CursorOptions, error)

Jump to

Keyboard shortcuts

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