indexes

package
v0.0.0-...-3b3f94e Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SearchResult

type SearchResult struct {
	ReleaseID      string `json:"releaseID"`
	FieldMatchedOn string `json:"fieldMatchedOn"`
	MatchValue     string `json:"matchValue"`
}

type TrieNode

type TrieNode struct {
	Key           rune
	Children      map[rune]*TrieNode
	SearchResults []SearchResult
	Parent        *TrieNode
	// contains filtered or unexported fields
}

func CreateTrieRoot

func CreateTrieRoot() *TrieNode

func (*TrieNode) AddToTrie

func (t *TrieNode) AddToTrie(prefix string, searchResult SearchResult)

func (*TrieNode) RemoveKeyAndReleaseID

func (t *TrieNode) RemoveKeyAndReleaseID(key string, value string) error

func (*TrieNode) SearchReleases

func (t *TrieNode) SearchReleases(prefix string, maxResults int) []SearchResult

Jump to

Keyboard shortcuts

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