Skip to content

sensitive word filter sego bolt,support sensitive word persistence

Notifications You must be signed in to change notification settings

hcj112/wordfilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

installation

go get github.com/hcj112/wordfilter

run

$ cd $GOPATH/github.com/hcj112/wordfilter/cmd
$ go run main.go -conf=example.toml

Dependencies

sego

bolt

filter keyword API

error code

// ok
OK = 0

// request error
RequestErr = -400

// server error
ServerErr = -500

add keyword

[GET] /filter/keyword/add

Name Type Remork
keyword string keyword for response

response:

{
    "code": 0,
    "message": ""
}

remove keyword

[GET] /filter/keyword/remove

Name Type Remork
keyword string keyword for response

response:

{
    "code": 0,
    "message": ""
}

replace keyword

[GET] /filter/keyword/replace

Name Type Remork
keyword string keyword for response

response:

{
    "code": 0,
    "message":",
    "data":"中华**共和国"
}

About

sensitive word filter sego bolt,support sensitive word persistence

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages