Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/go-joe/http-server

HTTP server integrations for the Joe bot library
https://github.com/go-joe/http-server

bot chat chatbot-framework joe slack

Last synced: about 1 month ago
JSON representation

HTTP server integrations for the Joe bot library

Awesome Lists containing this project

README

        

Joe Bot - HTTP Server


Providing HTTP integrations for Joe. https://github.com/go-joe/joe









---

This repository contains a module for the [Joe Bot library][joe].

## Getting Started

This library is packaged as [Go module][go-modules]. You can get it via:

```bash
go get github.com/go-joe/http-server
```

### Example usage

In order to let your bot listen to HTTP requests you should pass the `http.Server(…)`
module when creating a new bot:

```go
package main

import (
"github.com/go-joe/joe"
"github.com/go-joe/http-server"
)

func main() {
b := joe.New("example-bot",
joehttp.Server("localhost:12345"),

)

err := b.Run()
if err != nil {
b.Logger.Fatal(err.Error())
}
}
```

When the server receives a request, it will emit it to the bots brain as `joehttp.RequestEvent`.

## Built With

* [zap](https://github.com/uber-go/zap) - Blazing fast, structured, leveled logging in Go
* [testify](https://github.com/stretchr/testify) - A simple unit test library

## Contributing

If you want to hack on this repository, please read the short [CONTRIBUTING.md](CONTRIBUTING.md)
guide first.

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available,
see the [tags on this repository][tags].

## Authors

- **Friedrich Große** - *Initial work* - [fgrosse](https://github.com/fgrosse)

See also the list of [contributors][contributors] who participated in this project.

## License

This project is licensed under the BSD-3-Clause License - see the [LICENSE](LICENSE) file for details.

[joe]: https://github.com/go-joe/joe
[go-modules]: https://github.com/golang/go/wiki/Modules
[tags]: https://github.com/go-joe/http-server/tags
[contributors]: https://github.com/go-joe/http-server/contributors