kittygcp

package module
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 0 Imported by: 0

README

kitty-gcp

Travis-CI GoDoc GoReportCard

go get github.com/objenious/kitty-gcp

Status: alpha - breaking changes might happen

kitty-gcp adds support for Google Cloud Platform to 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)

Documentation

Overview

Package kittygcp provides support for Google Cloud Platform queues to github.com/objenious/kitty. For now, only Pub/Sub is supported.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL