command
Version:
v0.0.0-...-46dda04
Opens a new window with list of versions in this module.
Published: Jan 28, 2016
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
http service
Usage
-
Start service
go run main.go
-
Add keywords to service
curl -X POST -H "Content-Type: application/json" -d '[{"Word":"xxoo","Kind":"porn","Rate":100}]' http://127.0.0.1:7520/addkws
-
Add ignore symbols to service
curl -X POST -H "Content-Type: application/json" -d '["*","%"]' http://127.0.0.1:7520/addsbs
-
Fitler content
curl -X POST -H "Content-Type: application/json" -d '{"Content":"test *xx**oo something"}' http://127.0.0.1:7520/filter
// result
{"Success":true,"Msg":"","Result":{"Threshold":100,"Rate":100,"Keywords":[{"Rate":100,"Index":6,"Kind":"porn","Word":"xx**oo"}]}}
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.