package
0.0.0-20220204030629-f17b0e9267fe
Repository: https://github.com/jsmorph/evpat.git
Documentation: pkg.go.dev

# README

Event pattern (matching)

A naive implementation of Amazon EventBridge event patterns.

The tests include an option to use the AWS SDK to test matching.

ToDo

  • Null

  • CIDR

  • Number comparison is supposed to be by string comparison?

    For numbers, EventBridge uses string representation. For example, 300, 300.0, and 3.0e2 are not considered equal.

  • Many more test cases

  • anything-but

  • Test cases as JSON

  • Benchmarks

  • Array values

  • Better documentation since IMHO the AWS docs aren't great

# Functions

No description provided by the author
Matches is a predicate that reports whether its second argument matches the pattern given in the first argument.
ParsePattern just calls DefaultCfg.ParsePattern().

# Variables

No description provided by the author
No description provided by the author
Pass is a handy (?) Constraint with a Matches method that always returns true.

# Structs

No description provided by the author
Cfg can store limits and options for parsing patterns.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Constraint is probably really a pattern.

# Type aliases

Constraints is just a list of Constraints, and a Constraints is itself a Constraint.
No description provided by the author