search

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulSearch

type ConsulSearch struct {
	// contains filtered or unexported fields
}

func New

func New(consulClient *api.Client) *ConsulSearch

func (*ConsulSearch) SearchGlob

func (cs *ConsulSearch) SearchGlob(query string, path string, scope Scope) ([]ResultPair, error)

func (*ConsulSearch) SearchRegex

func (cs *ConsulSearch) SearchRegex(query string, path string, scope Scope) ([]ResultPair, error)

type ResultPair

type ResultPair struct {
	Key   string
	Value string
}

type Scope

type Scope int
const (
	Keys Scope = iota
	Values
	Everywhere
)

Jump to

Keyboard shortcuts

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