Documentation ¶
Index ¶
- func NewHTTPClient(_ context.Context, maxConnsPerHost MaxConnsPerHost) *nethttp.Client
- func NewHTTPMessageReceiver(port Port) *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 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.