queryFilter

package
v0.0.0-...-7c50ef6 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const TimeStampColumn = "pull_time"

Variables

This section is empty.

Functions

func FilterConditionsToJSON

func FilterConditionsToJSON(conditions []FilterCondition) (string, error)

Types

type DataType

type DataType string
const (
	String    DataType = "string"
	Integer   DataType = "integer"
	Float     DataType = "float"
	Date      DataType = "date"
	Datetime  DataType = "datetime"
	Timestamp DataType = "timestamp"
)

type FilterCondition

type FilterCondition struct {
	Column   string   `json:"column"`
	DataType DataType `json:"dataType"`
	Value    string   `json:"value"`
}

func JSONToFilterConditions

func JSONToFilterConditions(jsonString *string) ([]FilterCondition, error)

type FilterValue

type FilterValue struct {
	Column string      `json:"column"`
	Value  interface{} `json:"value"`
}

func JSONToFilterValues

func JSONToFilterValues(filterJson *string) ([]FilterValue, error)

Jump to

Keyboard shortcuts

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