https://github.com/objenious/kitty-gcp
Google Cloud support for kitty
https://github.com/objenious/kitty-gcp
Last synced: 5 months ago
JSON representation
Google Cloud support for kitty
- Host: GitHub
- URL: https://github.com/objenious/kitty-gcp
- Owner: objenious
- License: mit
- Created: 2018-08-24T15:12:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-04-26T13:41:20.000Z (about 5 years ago)
- Last Synced: 2024-11-17T12:07:04.414Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kitty-gcp
[](https://travis-ci.org/objenious/kitty-gcp) [](http://godoc.org/github.com/objenious/kitty-gcp)
[](https://goreportcard.com/report/github.com/objenious/kitty-gcp)
`go get github.com/objenious/kitty-gcp`
## Status: alpha - breaking changes might happen
kitty-gcp adds support for Google Cloud Platform to [kitty](https://github.com/objenious/kitty).
## Pub/Sub
Connect to Pub/Sub :
```
tr := pubsub.NewTransport(ctx, "project-id").
Endpoint(subscriptionName, endpoint, Decoder(decodeFunc))
err := kitty.NewServer(tr).Run(ctx)
```
If your service needs to run on Kubernetes, you also need to have a http transport for keep-alives :
```
tr := pubsub.NewTransport(ctx, "project-id").
Endpoint(subscriptionName, endpoint, Decoder(decodeFunc))
h := kitty.NewHTTPTransport(kitty.Config{HTTPPort: 8080})
err := kitty.NewServer(tr, h).Run(ctx)
```