Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoolFilter ¶
type BoolFilter struct {
Field string
Value *bool // nil = all, true = enabled only, false = disabled only
}
BoolFilter filters by boolean field.
func NewBoolFilter ¶
func NewBoolFilter(field string, value *bool) *BoolFilter
NewBoolFilter creates a filter for boolean field values. Value nil = all, true = only true values, false = only false values.
func (*BoolFilter) Apply ¶
func (f *BoolFilter) Apply(data interface{}) (interface{}, error)
Apply filters data by boolean field value.
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
Chain combines multiple filters (AND logic).
type ColumnValueFilter ¶
ColumnValueFilter filters rows by column value.
func NewColumnFilter ¶
func NewColumnFilter(column, value string) *ColumnValueFilter
NewColumnFilter creates a filter for exact column value matching.
func (*ColumnValueFilter) Apply ¶
func (f *ColumnValueFilter) Apply(data interface{}) (interface{}, error)
Apply filters data by exact column value match.
type Filter ¶
type Filter interface {
Apply(data interface{}) (interface{}, error)
}
Filter interface for composability.
type GlobFilter ¶
GlobFilter matches patterns (e.g., "plat-*-dev").
func NewGlobFilter ¶
func NewGlobFilter(field, pattern string) (*GlobFilter, error)
NewGlobFilter creates a filter that matches field values against glob pattern.
func (*GlobFilter) Apply ¶
func (f *GlobFilter) Apply(data interface{}) (interface{}, error)
Apply filters data by glob pattern matching.
Click to show internal directories.
Click to hide internal directories.