Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- type ClientOption
- type ConvertFn
- type Event
- type EventContext
- type EventContextV01
- type EventContextV02
- type EventContextV03
- type EventResponse
- type HTTPEncoding
- type HTTPOption
- type HTTPTransport
- type HTTPTransportContext
- type HTTPTransportResponseContext
- type Timestamp
- type URLRef
Constants ¶
View Source
const ( ApplicationXML = cloudevents.ApplicationXML ApplicationJSON = cloudevents.ApplicationJSON ApplicationCloudEventsJSON = cloudevents.ApplicationCloudEventsJSON ApplicationCloudEventsBatchJSON = cloudevents.ApplicationCloudEventsBatchJSON Base64 = cloudevents.Base64 VersionV01 = cloudevents.CloudEventsVersionV01 VersionV02 = cloudevents.CloudEventsVersionV02 VersionV03 = cloudevents.CloudEventsVersionV03 HTTPBinaryV01 = http.BinaryV01 HTTPStructuredV01 = http.StructuredV01 HTTPBinaryV02 = http.BinaryV02 HTTPStructuredV02 = http.StructuredV02 HTTPBinaryV03 = http.BinaryV03 HTTPStructuredV03 = http.StructuredV03 HTTPBatchedV03 = http.BatchedV03 Binary = http.Binary Structured = http.Structured )
Variables ¶
View Source
var ( StringOfApplicationJSON = cloudevents.StringOfApplicationJSON StringOfApplicationXML = cloudevents.StringOfApplicationXML StringOfApplicationCloudEventsJSON = cloudevents.StringOfApplicationCloudEventsJSON StringOfApplicationCloudEventsBatchJSON = cloudevents.StringOfApplicationCloudEventsBatchJSON StringOfBase64 = cloudevents.StringOfBase64 NewClient = client.New NewDefaultClient = client.NewDefault WithEventDefaulter = client.WithEventDefaulter WithUUIDs = client.WithUUIDs WithTimeNow = client.WithTimeNow WithConverterFn = client.WithConverterFn NewEvent = cloudevents.New EnableTracing = observability.EnableTracing ContextWithTarget = context.WithTarget TargetFromContext = context.TargetFrom ContextWithEncoding = context.WithEncoding EncodingFromContext = context.EncodingFrom ParseTimestamp = types.ParseTimestamp ParseURLRef = types.ParseURLRef NewHTTPTransport = http.New WithTarget = http.WithTarget WithMethod = http.WithMethod WitHHeader = http.WithHeader WithShutdownTimeout = http.WithShutdownTimeout WithEncoding = http.WithEncoding WithContextBasedEncoding = http.WithContextBasedEncoding WithBinaryEncoding = http.WithBinaryEncoding WithStructuredEncoding = http.WithStructuredEncoding WithPort = http.WithPort WithPath = http.WithPath WithMiddleware = http.WithMiddleware WithLongPollTarget = http.WithLongPollTarget HTTPTransportContextFrom = http.TransportContextFrom ContextWithHeader = http.ContextWithHeader )
Functions ¶
This section is empty.
Types ¶
type ClientOption ¶
type Event ¶
type Event = cloudevents.Event
type EventContext ¶
type EventContext = cloudevents.EventContext
type EventContextV01 ¶
type EventContextV01 = cloudevents.EventContextV01
type EventContextV02 ¶
type EventContextV02 = cloudevents.EventContextV02
type EventContextV03 ¶
type EventContextV03 = cloudevents.EventContextV03
type EventResponse ¶
type EventResponse = cloudevents.EventResponse
type HTTPEncoding ¶
type HTTPOption ¶
type HTTPTransport ¶
type HTTPTransportContext ¶
type HTTPTransportContext = http.TransportContext
type HTTPTransportResponseContext ¶
type HTTPTransportResponseContext = http.TransportResponseContext
Directories ¶
Path | Synopsis |
---|---|
binding
|
|
format/protobuf
Module
|
|
cmd
|
|
observability
|
|
opencensus
Module
|
|
opentelemetry
Module
|
|
pkg
|
|
binding
Package binding is for implementing transport bindings and intermediaries like importers, brokers or channels that forward messages between bindings.
|
Package binding is for implementing transport bindings and intermediaries like importers, brokers or channels that forward messages between bindings. |
cloudevents
Package cloudevents provides primitives to work with CloudEvents specification: https://github.com/cloudevents/spec.
|
Package cloudevents provides primitives to work with CloudEvents specification: https://github.com/cloudevents/spec. |
cloudevents/client
Package client holds the recommended entry points for interacting with the CloudEvents Golang SDK.
|
Package client holds the recommended entry points for interacting with the CloudEvents Golang SDK. |
cloudevents/context
Package context holds the last resort overrides and fyi objects that can be passed to clients and transports added to context.Context objects.
|
Package context holds the last resort overrides and fyi objects that can be passed to clients and transports added to context.Context objects. |
cloudevents/datacodec
Package datacodec holds the data codec registry and adds known encoders and decoders supporting media types such as `application/json` and `application/xml`.
|
Package datacodec holds the data codec registry and adds known encoders and decoders supporting media types such as `application/json` and `application/xml`. |
cloudevents/datacodec/json
Package json holds the encoder/decoder implementation for `application/json`.
|
Package json holds the encoder/decoder implementation for `application/json`. |
cloudevents/datacodec/xml
Package xml holds the encoder/decoder implementation for `application/xml`.
|
Package xml holds the encoder/decoder implementation for `application/xml`. |
cloudevents/observability
Package observability holds metrics and tracing recording implementations.
|
Package observability holds metrics and tracing recording implementations. |
cloudevents/transport
Package transport defines interfaces to decouple the client package from transport implementations.
|
Package transport defines interfaces to decouple the client package from transport implementations. |
cloudevents/transport/amqp
Package amqp implements the CloudEvent transport implementation using amqp.
|
Package amqp implements the CloudEvent transport implementation using amqp. |
cloudevents/transport/http
Package http implements the CloudEvent transport implementation using HTTP.
|
Package http implements the CloudEvent transport implementation using HTTP. |
cloudevents/transport/nats
Package nats implements the CloudEvent transport implementation using NATS.
|
Package nats implements the CloudEvent transport implementation using NATS. |
cloudevents/transport/pubsub
Package pubsub implements the CloudEvent transport implementation using pubsub.
|
Package pubsub implements the CloudEvent transport implementation using pubsub. |
cloudevents/types
Package types provides custom types to support CloudEvents.
|
Package types provides custom types to support CloudEvents. |
protocol
|
|
amqp
Module
|
|
kafka_confluent
Module
|
|
kafka_sarama
Module
|
|
mqtt_paho
Module
|
|
nats
Module
|
|
nats_jetstream
Module
|
|
pubsub
Module
|
|
stan
Module
|
|
ws
Module
|
|
samples
|
|
amqp
Module
|
|
gochan
Module
|
|
http
Module
|
|
kafka
Module
|
|
kafka_confluent
Module
|
|
mqtt
Module
|
|
nats
Module
|
|
nats_jetstream
Module
|
|
pubsub
Module
|
|
stan
Module
|
|
ws
Module
|
|
sql
module
|
|
test
|
|
benchmark
Module
|
|
integration
Module
|
|
observability
Module
|
|
tools
module
|
|
v2
|
|
protocol/amqp
Module
|
|
protocol/kafka_sarama
Module
|
|
protocol/nats
Module
|
|
protocol/pubsub
Module
|
|
protocol/stan
Module
|
|
samples
Module
|
|
test
Module
|
|
tools
Module
|
Click to show internal directories.
Click to hide internal directories.