query

package
v0.0.0-...-1a4fc59 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryBuilder

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

func NewQuery

func NewQuery(ctx context.Context, searchClientConfig search_clients.SearchClientConfig) *QueryBuilder

NewQuery returns a new QueryBuilder. It uses the builder design pattern to allow method chaining.

func (*QueryBuilder) Execute

func (q *QueryBuilder) Execute() *QueryBuilder

Execute executes the query and stores the results in the QueryBuilder.

func (*QueryBuilder) GetQueryText

func (q *QueryBuilder) GetQueryText() string

func (*QueryBuilder) GetResults

func (q *QueryBuilder) GetResults() (string, error)

func (*QueryBuilder) GetType

func (q *QueryBuilder) GetType() string

func (*QueryBuilder) SetQueryText

func (q *QueryBuilder) SetQueryText(text string) *QueryBuilder

func (*QueryBuilder) SetType

func (q *QueryBuilder) SetType(t string) *QueryBuilder

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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