Commit Graph

22 Commits

Author SHA1 Message Date
Erik Paulson 928ebcfd6f
formats: Add support for protobuf format (#348)
* formats: Add support for protobuf format

Adds support for the Protocol Buffer CloudEvent format defined at
https://github.com/cloudevents/spec/blob/v1.0.1/protobuf-format.md.

Compiles the Proto3 file taken from the spec repo into generated Java
protobuf classes. These classes are used to convert the SDK
representation of a CloudEvent to and from the protobuf format.

Signed-off-by: Erik Paulson <epaulson@apexclearing.com>

* Address feedback in PR #348

- Adds service file for event format autoloading
- Addresses some field access issues
- Treats unset fields as omitted
- Updates and adds documentation

Signed-off-by: Erik Paulson <epaulson@apexclearing.com>

* Add missing attribute writer methods for CloudEventBuilders

Without these methods, binary attributes are interpreted as
Strings instead of byte[].

Signed-off-by: Erik Paulson <epaulson@apexclearing.com>

* Added test data files.

Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>

* - Now executes tests related to wire-format files.
- Supports V03 dialect

Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>

* - Added new ProtoCloudEventData construct to support proto message based data.
- Added some more test files.

- When the PR related to binary context attributes is merged we can extend the
test use-cases appropriately.

Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>

* - Merged changes related to binary context attributes.
- Modified proto format to process binary context attributes
- Added CloudEventData varient to hold proto messages (requires tests)
- Will add further tests once the failing test is addressed

Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>

* Added test for protobuf data

Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>

* Indicate that v0.3 events are supported by Protobuf Format

Even though the protobuf spec came out for v1, the attributes are
fairly easily mapped back to v0.3.

Signed-off-by: Erik Paulson <epaulson@apexclearing.com>

* Add missing comments; fix formatting; minor refactoring

Signed-off-by: Erik Paulson <epaulson@apexclearing.com>

* Create a full Protobuf CloudEventWriter

Converts the ProtoContextWriter class to a ProtoCloudEventWriter class
and modifies the format code to use it instead of manually writing
data to the output.

Signed-off-by: Erik Paulson <epaulson@apexclearing.com>

* - Addressed Review Comments.
- Introduced a default ProtoDataWrapper
- Tests updated.

Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>

* Address Review Comments

Signed-off-by: Day, Jeremy(jday) <jday@paypal.com>

* Test cleanup and timezone testing

This does some tweaking to tests by moving to using assertj and fixing
whitespace. It also adds a new test to ensure that timezones are handled
correctly.

Signed-off-by: Erik Paulson <epaulson@apexclearing.com>

* Formatting cleanup

- Remove unecessary whitespace
- Fix Javadocs
- Delete unused code

Signed-off-by: Erik Paulson <epaulson@apexclearing.com>

Co-authored-by: Day, Jeremy(jday) <jday@paypal.com>
2021-04-19 09:24:26 +02:00
Dave Syer a419d8bba3
Add Spring Cloud Function sample (#356)
* Add Spring Cloud Function sample

Signed-off-by: Dave Syer <dsyer@vmware.com>

* Fix example curl command with structured event

Signed-off-by: Dave Syer <dsyer@vmware.com>
2021-03-08 15:08:16 +01:00
Dave Syer 47bed5616d
Flesh out the docs in the Spring module a bit (#355)
Signed-off-by: Dave Syer <dsyer@vmware.com>
2021-03-08 14:39:17 +01:00
dependabot[bot] 32bcdcd3b9
Bump nokogiri from 1.10.10 to 1.11.1 in /docs (#347)
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.10.10 to 1.11.1.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.10.10...v1.11.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-05 09:18:32 +01:00
Dave Syer 8b382734d9
Add support for RSockets with Spring (#349)
* Add support for RSockets with Spring

Also generically can support structured events with any Spring
API that works with Encoder and Decoder. There's a sample for
the RSocket case with a simple request-response echo server.

Signed-off-by: Dave Syer <dsyer@vmware.com>

* Use supported mime types from format provider

Signed-off-by: Dave Syer <dsyer@vmware.com>
2021-03-05 09:18:19 +01:00
David Denton 23cd08fcfd
Fix #344 - add http4k references to docs (#345)
Signed-off-by: David Denton <denton.david@gmail.com>
2021-02-15 09:42:13 +01:00
github-actions[bot] 48fc69e058
Bump to 2.0.0 (#343)
Signed-off-by: GitHub <noreply@github.com>

Co-authored-by: slinkydeveloper <slinkydeveloper@users.noreply.github.com>
2021-02-15 09:09:09 +01:00
Francesco Guardiani e523bfbfbf
Rename extension (#339)
* Fixed broken links

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Renamed Extension to CloudEventExtension

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

Co-authored-by: slinkydeveloper <slinkydeveloper@users.noreply.github.com>
2021-02-02 08:32:43 +01:00
Alfusainey Jallow d49ff9f69d
update AMQP docs (#331)
Signed-off-by: Alfusainey Jallow <alf.jallow@gmail.com>
2020-12-14 11:08:41 +01:00
github-actions[bot] 296230719b
Bump to 2.0.0.RC2 (#327)
Signed-off-by: GitHub <noreply@github.com>

Co-authored-by: slinkydeveloper <slinkydeveloper@users.noreply.github.com>
2020-12-11 11:04:09 +01:00
Francesco Guardiani d9592d5201
Fixed broken links (#328)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

Co-authored-by: slinkydeveloper <slinkydeveloper@users.noreply.github.com>
2020-12-11 10:57:40 +01:00
Francesco Guardiani 3a22557b83
Website docs (#324)
* Halfway through it

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* That should be it

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Prettier run

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Removed code sample

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Suggestions + fixed up the mess made by prettier

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Suggestion

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-12-11 10:38:04 +01:00
Francesco Guardiani 7696ffe4ec
Update website deps to latest version (#265)
Include in the header the GH edit link for any page
Add favicon

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-11-13 09:58:52 +01:00
Francesco Guardiani c61f87f4d5
Release automation (#191)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-09-01 11:35:53 +02:00
Francesco Guardiani 900decaed0
Release 2.0.0-milestone1 (#187)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-06-25 15:01:48 +02:00
Francesco Guardiani fd1e6b2728
Improved a bit the docs website (#185)
* Improved a bit the docs
Changed the docs website theme

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Using constants

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-06-25 11:24:18 +02:00
Francesco Guardiani 0fdfcc378d
Moved cloudevents-api to cloudevents-core (#155)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

Proposed set of apis for CloudEvent

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

Changes

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

Javadocs

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

Removed CloudEventBuilder.java

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

Nits

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-05-22 16:30:36 +02:00
Francesco Guardiani 5c28b36967
Reworked Kafka module (#134)
* WIP kafka

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Worked on some abstractions to simplify implementation of Message

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Reworked kafka module

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Applied suggestions + documented Kafka module usage

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Renaming

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Docs fix

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* small fixes

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* small fixes

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-04-28 10:33:00 +02:00
Francesco Guardiani d5f87a6df1
Fixed table (#136)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-04-27 20:23:11 +02:00
Francesco Guardiani bf3514459b
Docs (#135)
* Added jemoji

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>

* Renamed vertx module to cloudevents-http-vertx
Fixed docs

Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-04-27 19:47:23 +02:00
Francesco Guardiani 1b03ee1a93 Set theme jekyll-theme-slate 2020-04-27 19:01:16 +02:00
Francesco Guardiani 7d80d7263b
Bootstrap docs (#133)
Signed-off-by: Francesco Guardiani <francescoguard@gmail.com>
2020-04-27 19:00:07 +02:00