redisx

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FTFinalQuery

func FTFinalQuery(query string) string

func FTGenNumericRangeQuery

func FTGenNumericRangeQuery[T Integer](name string, from, to T, fromFlag, toFlag NumericRangeFlag) (query string, err error)

func FTGenNumericRangeQueryIgnoreError

func FTGenNumericRangeQueryIgnoreError[T Integer](name string, from, to T, fromFlag, toFlag NumericRangeFlag) (query string)

func FTGenNumericTagsQuery

func FTGenNumericTagsQuery[T Integer](name string, vs []T) string

func FTGenNumericTagsQueryEx

func FTGenNumericTagsQueryEx[T Integer](name string, vs []T, useNot, useAnd bool) string

func FTGenTagsQuery

func FTGenTagsQuery(name string, vs []string) string

func FTGenTagsQuery2

func FTGenTagsQuery2[T any](name string, vs []T) string

func FTGenTextQuery

func FTGenTextQuery(name, value string) string

Types

type Integer

type Integer interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64 |
		~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
}

type NumericRangeFlag

type NumericRangeFlag int
const (
	// BoundInclusive represents a closed boundary that includes the endpoint value.
	// Example: [5, 10] — both 5 and 10 are included.
	BoundInclusive NumericRangeFlag = iota

	// BoundExclusive represents an open boundary that excludes the endpoint value.
	// Example: (5, 10) — neither 5 nor 10 is included.
	BoundExclusive

	// BoundNegInf represents negative infinity (-∞).
	// Used to indicate no lower bound in a numeric range.
	BoundNegInf

	// BoundPosInf represents positive infinity (+∞).
	// Used to indicate no upper bound in a numeric range.
	BoundPosInf
)

func (NumericRangeFlag) String

func (f NumericRangeFlag) String() string

Jump to

Keyboard shortcuts

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