search

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package search provides a search interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Indexed

type Indexed interface {
	// IndexID returns an ID used to identify the resource that is indexed
	IndexID() string

	// IndexFields should index the fields using the index function
	IndexFields(index Indexer)

	// IndexFields should index the Labels using the index function
	IndexLabels(index Indexer)
}

Indexed must be implemented by resources that are indexed

type Indexer

type Indexer func(name string, value string)

Indexer is a function passed to the functions of Index

Jump to

Keyboard shortcuts

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