Documentation ¶
Index ¶
- func NewHTTPClient(_ context.Context, maxConnsPerHost MaxConnsPerHost) *nethttp.Client
- func NewHTTPMessageReceiver(port Port) *kncloudevents.HTTPMessageReceiver
- func NewHTTPMessageReceiverWithChecker(port Port, authType authcheck.AuthType) *kncloudevents.HTTPMessageReceiver
- func NewObservedPubsubClient(ctx context.Context, client *pubsub.Client) (cev2.Client, error)
- func NewPubsubClient(ctx context.Context, projectID ProjectID) (*pubsub.Client, error)
- type MaxConnsPerHost
- type Port
- type ProjectID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPClient ¶
func NewHTTPClient(_ context.Context, maxConnsPerHost MaxConnsPerHost) *nethttp.Client
func NewHTTPMessageReceiver ¶
func NewHTTPMessageReceiver(port Port) *kncloudevents.HTTPMessageReceiver
NewHTTPMessageReceiver wraps kncloudevents.NewHttpMessageReceiver with type-safe options.
func NewHTTPMessageReceiverWithChecker ¶ added in v0.21.0
func NewHTTPMessageReceiverWithChecker(port Port, authType authcheck.AuthType) *kncloudevents.HTTPMessageReceiver
NewHTTPMessageReceiverWithChecker wraps kncloudevents.NewHttpMessageReceiver with a authentication checker.
func NewObservedPubsubClient ¶
NewObservedPubsubClient creates a pubsub Cloudevents client with observability support.
Types ¶
type MaxConnsPerHost ¶
type MaxConnsPerHost int
Click to show internal directories.
Click to hide internal directories.