search

package
v3.8.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateTotalPages

func CalculateTotalPages(total, resultsPerPage uint64) int

Types

type Document

type Document struct {
	metadata.Metadata
	ID          string
	Slug        string
	Highlighted bool
}

type PaginatedResult

type PaginatedResult struct {
	Page       int
	TotalPages int
	Hits       []Document
	TotalHits  int
}

PaginatedResult holds the result of a search request, as well as some related metadata

Jump to

Keyboard shortcuts

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