Commit Graph

7 Commits

Author SHA1 Message Date
Matt Moore 222dd25986 Migrate pkg to use the knative.dev/pkg import path (#489)
* Manual changes.

* scripted changes.
2019-06-26 13:02:06 -07:00
Scott Nichols fda62c696b Revert delete of cloudevents. (#356) 2019-03-29 16:01:54 -07:00
Scott Nichols 5e5f376ef5 Delete pkg/cloudevents, use cloudevents/sdk-go instead. (#330)
* Delete pkg/cloudevents, use cloudevents/sdk-go instead.

* update deps.
2019-03-19 17:55:46 -07:00
Evan Anderson a118428db1 Add support for v0.2 CloudEvents "context attributes". (#248)
* CloudEvents v0.2 support, step 1: interfaces and versioned types.

Signed-off-by: Evan Anderson <evan.k.anderson@gmail.com>

* Add support for v0.2 event types. (Breaking change in return types!)

Signed-off-by: Evan Anderson <evan.k.anderson@gmail.com>

* Move DataContentType() to be common across Senders and Receivers.

Signed-off-by: Evan Anderson <evan.k.anderson@gmail.com>

* Add comment on why test code is commented out.

Signed-off-by: Evan Anderson <evan.k.anderson@gmail.com>

* Address @vagababov review.

* Add another test case and better cover extensions in handler tests.
2019-02-01 22:23:38 -08:00
Victor Agababov a330baa9b0 Grep fix formatting issues (#233)
* Some fixes to the spoof.go and exporter.go

While reviewing some other CL, I saw some avenues for improving
spoof.go, to log the URL that's being fetched, which would help in test
debugging and to use switch construct, rather than nested if's.

While testing the change, I noticed some shifty loggin from the
exporter, so I fixed that as well while I was there.

* Continuation of the previous cleanups.

* Fix the issues with formatting by executing a grep

* and fix compilation error

* lowercase error

* fix the newly changed unit test
2019-01-18 14:33:32 -08:00
Evan Anderson f3e33e3b92 Add support for returning a cloudevents.EventContext from a function. (#205)
Signed-off-by: Evan Anderson <evan.k.anderson@gmail.com>
2018-12-19 14:32:35 -08:00
Scott Nichols 04b40fd38a Adding cloudevent sdk for working with cloud event producers and consumers. (#154) 2018-11-02 10:43:35 -07:00