Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Receiver ¶
type Receiver struct {
// contains filtered or unexported fields
}
Receiver parses Cloud Events and sends them to GCP PubSub.
func New ¶
func New(logger *zap.Logger, client client.Client, pubSubClientCreator util.PubSubClientCreator) (*Receiver, []manager.Runnable, error)
New creates a new Receiver and its associated MessageReceiver. The caller is responsible for Start()ing the returned MessageReceiver.
func (*Receiver) UpdateHostToChannelMap ¶ added in v0.6.0
UpdateHostToChannelMap will be called from the controller that watches gcp-pubsub channels. It will update internal hostToChannelMap which is used to resolve the hostHeader of the incoming request to the correct ChannelReference in the receiver function.
Click to show internal directories.
Click to hide internal directories.