demoh

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterByMode

func FilterByMode(demos []qtvscraper.Demo, mode string) []qtvscraper.Demo

func FilterByParams

func FilterByParams(demos []qtvscraper.Demo, params *DemoParams) []qtvscraper.Demo

func FilterByQtvAddress

func FilterByQtvAddress(demos []qtvscraper.Demo, qtvAddress string) []qtvscraper.Demo

func FilterByQuery

func FilterByQuery(demos []qtvscraper.Demo, query string) []qtvscraper.Demo

func Handler

func Handler(demoProvider func() []qtvscraper.Demo) func(c *fiber.Ctx) error

func SubstringMatch

func SubstringMatch(haystack string, query string) bool

Types

type DemoParams

type DemoParams struct {
	Mode       string `query:"mode" validate:"omitempty"`
	Query      string `query:"q" validate:"omitempty"`
	QtvAddress string `query:"qtv_address" validate:"omitempty"`
	Limit      int    `query:"limit" validate:"omitempty"`
}

Jump to

Keyboard shortcuts

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