Skip to main content

@dapr/publish

Description

MessagingSource code

TODO

Options

resource

resource *ResourceRef

The name of the Dapr client resource.

pubsub

pubsub *string

Name of pubsub to invoke.

topic

topic *string

Topic is the name of the topic to publish to.

codec

codec *CodecRef

The configured codec to use for encoding the message.

codecArgs

codecArgsany[]

The arguments for the codec, if any.

key

keystring (Value expression)

optional value to use for the message key (is supported).

data

datastring (Data expression)

The input bindings sent.

metadata

metadatastring (Data expression)

The input binding metadata.

propogateTracing

propogateTracing *bool

Enables/disables propogating the distributed tracing context (e.g. W3C TraceContext standard).