search

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Code generated by Project Forge, see https://projectforge.dev for details.

Code generated by Project Forge, see https://projectforge.dev for details.

Code generated by Project Forge, see https://projectforge.dev for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	Q string `json:"q"`
}

func (*Params) String

func (r *Params) String() string

type Provider

type Provider func(context.Context, *app.State, *Params) (Results, error)

type Result

type Result struct {
	ID    string      `json:"id,omitempty"`
	Type  string      `json:"type,omitempty"`
	Title string      `json:"title,omitempty"`
	Icon  string      `json:"icon,omitempty"`
	URL   string      `json:"url,omitempty"`
	Match string      `json:"match,omitempty"`
	Data  interface{} `json:"data,omitempty"`
	HTML  string      `json:"-"`
}

type Results

type Results []*Result
func Search(ctx context.Context, as *app.State, params *Params) (Results, []error)

func (Results) Sort

func (rs Results) Sort()

Jump to

Keyboard shortcuts

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