searchqueryspec

package
v0.0.4-0...-a9841f4 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(data []byte) (builder.SearchQuerySpec, error)

Types

type All

type All struct {
	Base
}

func NewAll

func NewAll() *All

type Base

type Base struct {
	Typ builder.ComponentType `json:"type,omitempty"`
}

func (*Base) SetType

func (b *Base) SetType(typ builder.ComponentType) *Base

func (*Base) Type

func (b *Base) Type() builder.ComponentType

type Contains

type Contains struct {
	Base
	Value         string `json:"value,omitempty"`
	CaseSensitive bool   `json:"caseSensitive,omitempty"`
}

func NewContains

func NewContains() *Contains

func (*Contains) SetCaseSensitive

func (c *Contains) SetCaseSensitive(caseSensitive bool) *Contains

func (*Contains) SetValue

func (c *Contains) SetValue(value string) *Contains

type Fragment

type Fragment struct {
	Base
	Value         string `json:"value,omitempty"`
	CaseSensitive bool   `json:"caseSensitive,omitempty"`
}

func NewFragment

func NewFragment() *Fragment

func (*Fragment) SetCaseSensitive

func (f *Fragment) SetCaseSensitive(caseSensitive bool) *Fragment

func (*Fragment) SetValue

func (f *Fragment) SetValue(value string) *Fragment

type InsensitiveContains

type InsensitiveContains struct {
	Base
	Value string `json:"value,omitempty"`
}

func NewInsensitiveContains

func NewInsensitiveContains() *InsensitiveContains

func (*InsensitiveContains) SetValue

func (i *InsensitiveContains) SetValue(value string) *InsensitiveContains

type Regex

type Regex struct {
	Base
	Pattern string `json:"pattern,omitempty"`
}

func NewRegex

func NewRegex() *Regex

func (*Regex) SetPattern

func (r *Regex) SetPattern(pattern string) *Regex

Jump to

Keyboard shortcuts

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