Help us shape the future of Go! Take the 2026 Go Developer Survey

db

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetIndexer = sync.OnceValue(func() *Indexer {
	return &Indexer{Indexer: &inner_db.Indexer{}}
})

Functions

Types

type Indexer

type Indexer struct {
	indexer_internal.Indexer
}

Indexer implements Indexer interface to use database's like search

func (*Indexer) Delete

func (i *Indexer) Delete(_ context.Context, _ ...int64) error

Delete dummy function

func (*Indexer) FindWithIssueOptions

func (i *Indexer) FindWithIssueOptions(ctx context.Context, opt *issue_model.IssuesOptions, otherConds ...builder.Cond) (*internal.SearchResult, error)

func (*Indexer) Index

func (i *Indexer) Index(_ context.Context, _ ...*internal.IndexerData) error

Index dummy function

func (*Indexer) Search

func (i *Indexer) Search(ctx context.Context, options *internal.SearchOptions) (*internal.SearchResult, error)

Search searches for issues

func (*Indexer) SupportedSearchModes

func (i *Indexer) SupportedSearchModes() []indexer.SearchMode

Jump to

Keyboard shortcuts

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