pagination

package
v0.8.93 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 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 Options

type Options struct {
	Cursor *Cursor
	Limit  int
}

func New

func New(c string, l int) (*Options, error)

Jump to

Keyboard shortcuts

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