rule_service

command module
v0.0.0-...-44471cb Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

README

Overview

Generic rule service to maintain and evaluate rules as REST service.

Go Report Card

Supported Operators
Operator Supported
'>' Yes
< Yes
>= Yes
<= Yes
== Yes
!= Yes
in Yes
not_in Yes

Setup

  • step 1: change MongoURL in config/config.yaml
  • step 2: dep ensure
  • step 3: go run main.go

APIs

Postman Collection Link: https://github.com/nimesh-mittal/rule_service/blob/master/ruleset.postman_collection.json

  • Create Ruleset
  • List Ruleset
  • Update Ruleset
  • Delete Ruleset
  • Get Ruleset By ID
  • Evaluate Ruleset: Takes ruleset id and record and return matching rule with modified record

Extendability

Adding support for new data type
Adding support for new operator
Adding new rule strategy

Adding new strategy to pick one out of multiple matching rules

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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