Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update link to Message definition in spec #937

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion binding/format/protobuf/v2/pb/cloudevent.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion binding/format/protobuf/v2/pb/cloudevent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "google/protobuf/any.proto";
import "google/protobuf/timestamp.proto";

// CloudEvent is copied from
// https://github.com/cloudevents/spec/blob/master/protobuf-format.md.
// https://github.com/cloudevents/spec/blob/main/cloudevents/formats/protobuf-format.md.
message CloudEvent {
// Unique event identifier.
string id = 1;
Expand Down
8 changes: 4 additions & 4 deletions docs/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ support the following:

## Personas

- [Producer](https://github.com/cloudevents/spec/blob/master/spec.md#producer),
- [Producer](https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md#producer),
the "producer" is a specific instance, process or device that creates the data
structure describing the CloudEvent.
- [Consumer](https://github.com/cloudevents/spec/blob/master/spec.md#consumer),
- [Consumer](https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md#consumer),
a "consumer" receives the event and acts upon it. It uses the context and data
to execute some logic, which might lead to the occurrence of new events.
- [Intermediary](https://github.com/cloudevents/spec/blob/master/spec.md#intermediary),
- [Intermediary](https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md#intermediary),
An "intermediary" receives a message containing an event for the purpose of
forwarding it to the next receiver, which might be another intermediary or a
Consumer. A typical task for an intermediary is to route the event to
Expand Down Expand Up @@ -96,4 +96,4 @@ continued the message to one or more Consumers.
Mutator, when a Producer or Intermediary blocks on a response from a Consumer,
replacing the original Event.

![mutator](./images/mutator.svg "Mutator")
![mutator](./images/mutator.svg "Mutator")
4 changes: 2 additions & 2 deletions v2/binding/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import "errors"
type Encoding int

const (
// Binary encoding as specified in https://github.com/cloudevents/spec/blob/master/spec.md#message
// Binary encoding as specified in https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md#message
EncodingBinary Encoding = iota
// Structured encoding as specified in https://github.com/cloudevents/spec/blob/master/spec.md#message
// Structured encoding as specified in https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md#message
EncodingStructured
// Message is an instance of EventMessage or it contains EventMessage nested (through MessageWrapper)
EncodingEvent
Expand Down
3 changes: 2 additions & 1 deletion v2/event/eventcontext_v03.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ func (ec EventContextV03) AsV1() *EventContextV1 {
}

// Validate returns errors based on requirements from the CloudEvents spec.
// For more details, see https://github.com/cloudevents/spec/blob/master/spec.md
// For more details, see
// https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md
// As of Feb 26, 2019, commit 17c32ea26baf7714ad027d9917d03d2fff79fc7e
// + https://github.com/cloudevents/spec/pull/387 -> datacontentencoding
// + https://github.com/cloudevents/spec/pull/406 -> subject
Expand Down
Loading