Versions in this module Expand all Collapse all v1 v1.0.0 Jan 24, 2023 Changes in this version + const SegmentSeparator + type ArrayPos struct + Array int32 + Pos int32 + type Field struct + ArrayTrail []ArrayPos + Path []byte + Val []byte + type Flattener interface + Copy func() Flattener + Flatten func(event []byte, tracker SegmentsTreeTracker) ([]Field, error) + type LivePatternsState interface + Add func(x X, pattern string) error + Contains func(x X) (bool, error) + Delete func(x X) (int, error) + Iterate func(func(x X, pattern string) error) error + type Option func(q *Quamina) error + func WithFlattener(f Flattener) Option + func WithMediaType(mediaType string) Option + func WithPatternDeletion(b bool) Option + func WithPatternStorage(ps LivePatternsState) Option + type Quamina struct + func New(opts ...Option) (*Quamina, error) + func (q *Quamina) AddPattern(x X, patternJSON string) error + func (q *Quamina) Copy() *Quamina + func (q *Quamina) DeletePatterns(x X) error + func (q *Quamina) MatchesForEvent(event []byte) ([]X, error) + type SegmentsTreeTracker interface + FieldsCount func() int + Get func(segment []byte) (SegmentsTreeTracker, bool) + IsRoot func() bool + IsSegmentUsed func(segment []byte) bool + NodesCount func() int + PathForSegment func(name []byte) []byte + String func() string + type X any