https://github.com/shitpostingio/gibberish-microservice
https://github.com/shitpostingio/gibberish-microservice
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shitpostingio/gibberish-microservice
- Owner: shitpostingio
- License: mit
- Created: 2021-01-03T14:57:12.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-03T16:22:37.000Z (over 5 years ago)
- Last Synced: 2023-07-27T22:37:12.730Z (almost 3 years ago)
- Language: Go
- Size: 26.4 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Gibberish Microservice
REST-powered microservice for analyzing text and returning if it is likely gibberish or not.
The repository also contains a client to perform requests to the service.
It is important to notice that this service provides no support for authentication or caching. It is also completely stateless, making it ideal to be used in the backend. A possible "frontend" implementation can be found in [Analysis API](https://gitlab.com/shitposting/analysis-api).
## Endpoints
- Gibberish endpoint: `/gibberish`
- Health check: `/healthy`
## Returned data
The data returned by the server is in the form:
```go
type GibberishResponse struct {
IsGibberish bool
}
```
## Environment options
- Service bind address and port: `"GB_BIND_ADDRESS"` (defaults to `localhost:10002`).
- Path to knowledge base file: `GB_KNOWLEDGE_PATH` (defaults to `knowledge.json`).