search

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package search contains all the required functions to find work items Following different patterns and filter options.

Index

Constants

View Source
const (
	HostRegistrationKeyForListWI  = "work-item-list-details"
	HostRegistrationKeyForBoardWI = "work-item-board-details"
)

KnownURL registration key constants

Variables

This section is empty.

Functions

func GetAllRegisteredURLs

func GetAllRegisteredURLs() map[string]KnownURL

GetAllRegisteredURLs returns all known URLs

func RegisterAsKnownURL

func RegisterAsKnownURL(name, urlRegex string)

RegisterAsKnownURL appends to KnownURLs

Types

type GormSearchRepository

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

GormSearchRepository provides a Gorm based repository

func NewGormSearchRepository

func NewGormSearchRepository(db *gorm.DB) *GormSearchRepository

NewGormSearchRepository creates a new search repository

func (*GormSearchRepository) SearchFullText

func (r *GormSearchRepository) SearchFullText(ctx context.Context, rawSearchString string, start *int, limit *int, spaceID *string) ([]workitem.WorkItem, uint64, error)

SearchFullText Search returns work items for the given query

type KnownURL

type KnownURL struct {
	URLRegex string // regex for URL, Exposed to make the code testable
	// contains filtered or unexported fields
}

KnownURL has a regex string format URL and compiled regex for the same

Jump to

Keyboard shortcuts

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