Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PublisherSet wire.ProviderSet = wire.NewSet( NewPublisher, clients.NewHTTPMessageReceiver, clients.NewPubsubClient, NewPubSubTopic, wire.Bind(new(HttpMessageReceiver), new(*kncloudevents.HttpMessageReceiver)), )
PublisherSet provides a handler with a real HTTPMessageReceiver and a PubSub client.
Functions ¶
Types ¶
type HttpMessageReceiver ¶
type HttpMessageReceiver interface {
StartListen(ctx context.Context, handler nethttp.Handler) error
}
HttpMessageReceiver is an interface to listen on http requests.
type PubSubPublisher ¶
PubSubPublisher is an interface to publish events to a pubsub topic.
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
Publisher receives HTTP events and sends them to Pubsub.
func NewPublisher ¶
NewPublisher creates a new publisher.
Click to show internal directories.
Click to hide internal directories.