Skip to content

timakin/dratini

Repository files navigation

Dratini CircleCI

logo

Dratini is a push notification handler works on a spot instance. Normally, push notification server is resident API, but, like daily notification job, most of time it stands by and costs meaninglessly.

You can reduce the cost if the handler works only at the moment. Dratini cannot serve request like normal push notification handler. However, it will send bulk push notifications in parallel with background workers based on goroutine.

Installation

go get -u github.com/timakin/dratini

This project uses Go Modules, so if you've already installed Go (>= 1.11) and enables the flag GO111MODULE=on, you can automatically install the dependencies.

How to use

To run dratini, you must provide configuration path via -c option (See CONFIGURATION.md about details), and path (or url) written notification request JSON via -t option (See PUSH_REQUEST.md about detail parameters).

$ cd $GOPATH/src/github.com/timakin/dratini
$ go build -o app
$ app -c /path/to/config.toml -t /path/or/url/to/notifications.json

License

Licensed under the MIT License.

About

Spot push notification server in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages