convoy

package module
v0.6.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MPL-2.0 Imports: 4 Imported by: 22

README

Convoy

golangci-lint Build and run all tests

convoy image

Convoy is a fast & secure webhooks service. It receives event data from an HTTP API and sends these event data to the configured endpoints. To get started download the openapi spec into Postman or Insomnia.

Convoy includes the following features:

  • Security: Convoy signs the payload of events, so applications ensure the events have not been tampered with. You can configure your desired hash function to use as well as the name of the header E.g. X-Stripe-Signature to enable backward compatible migrations from custom-built systems to Convoy.

  • URL per Events: Convoy is able to receive one event and fan-out the event to multiple endpoints based on the configuration by the endpoint owner. On subscription, the endpoint owner configures what events should go to each endpoint. Overlaps are allowed.

  • Retries: Convoy currently supports two retry mechanisms: Constant time retries and exponential backoff. You can configure which retry mechanism works best for your application.

  • Management UI: Visibility and easy debugging are one of highly coveted features of a webhook delivery system. Convoy provides a UI to view your delivery attempt logs, filter by application, event status, date & time and perform flexible batch retries during downtimes.

  • Other features(Coming soon): Application Portal; enable you embed Convoy dashboard directly into your dashboard, Rate Limiting, Replay Attacks prevention, Multiple Ingest sources.

Installation, Getting Started

Follow the instructions on our quick start guide to start publishing events with Convoy.

There are several ways of installing Convoy.

Binaries

Convoy binaries can be downloaded with your package manager of choice. You can head over to Downloads Page to proceed.

Docker images

Docker images are available on GitHub Container Registry.

You can launch a Convoy Container with the following

$ docker run \
	-p 5005:5005 \
	--name convoy-server \
	-v `pwd`/convoy.json:/convoy.json \
	docker.cloudsmith.io/convoy/convoy/frain-dev/convoy:v0.6.0-rc.1

You can view a sample configuration here - convoy.json.

Building from source

To build Convoy from source code, you need:

git clone https://github.com/frain-dev/convoy.git && cd convoy
go build -o convoy ./cmd

Contributing

Thank you for your interest in contributing! Please refer to CONTRIBUTING.md for guidance. For contributions to the Convoy dashboard, please refer to the web/ui directory.

License

Mozilla Public License v2.0

Documentation

Index

Constants

View Source
const (
	RATE_LIMIT          = 5000
	RATE_LIMIT_DURATION = "1m"
	HTTP_TIMEOUT        = "30s"
)
View Source
const (
	EventProcessor        TaskName = "EventProcessor"
	DeadLetterProcessor   TaskName = "DeadLetterProcessor"
	CreateEventProcessor  TaskName = "CreateEventProcessor"
	NotificationProcessor TaskName = "NotificationProcessor"
	DailyAnalytics        TaskName = "daily analytics"
	ApplicationsCacheKey  CacheKey = "applications"
	GroupsCacheKey        CacheKey = "groups"
	TokenCacheKey         CacheKey = "tokens"
)
View Source
const (
	Concurrency = 100
)
View Source
const (
	EventDeliveryIDLength = 12
)

Variables

View Source
var ErrUnsupportedDatebase = fmt.Errorf("unsupported database for search detected, remove search configuration or use a supported database (mongodb)")

Functions

func GetVersion added in v0.4.10

func GetVersion() string

func ReadVersion added in v0.4.10

func ReadVersion() ([]byte, error)

Types

type CacheKey added in v0.5.3

type CacheKey string

func (CacheKey) Get added in v0.5.3

func (c CacheKey) Get(suffix string) CacheKey

func (CacheKey) String added in v0.5.3

func (c CacheKey) String() string

type GenericMap added in v0.6.0

type GenericMap map[string]interface{}

type HttpMethod

type HttpMethod string
const (
	HttpPost HttpMethod = "POST"
)

type Plugin

type Plugin interface {
	Apply(http.ResponseWriter, *http.Request) error
	Name() string
	IsEnabled() bool
}

type QueueName added in v0.6.0

type QueueName string
const (
	EventQueue       QueueName = "EventQueue"
	CreateEventQueue QueueName = "CreateEventQueue"
	PriorityQueue    QueueName = "PriorityQueue"
	ScheduleQueue    QueueName = "ScheduleQueue"
	DefaultQueue     QueueName = "DefaultQueue"
)

queues

type TaskName

type TaskName string

func (TaskName) SetPrefix

func (t TaskName) SetPrefix(prefix string) TaskName

Directories

Path Synopsis
Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT This file was generated by swaggo/swag at 2022-07-19 10:18:35.732177 +0100 WAT m=+107.953558084
Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT This file was generated by swaggo/swag at 2022-07-19 10:18:35.732177 +0100 WAT m=+107.953558084
internal
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
pkg

Jump to

Keyboard shortcuts

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