clients

package
v0.18.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2021 License: Apache-2.0 Imports: 9 Imported by: 9

Documentation

Index

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

func NewObservedPubsubClient(ctx context.Context, client *pubsub.Client) (cev2.Client, error)

NewObservedPubsubClient creates a pubsub Cloudevents client with observability support.

func NewPubsubClient

func NewPubsubClient(ctx context.Context, projectID ProjectID) (*pubsub.Client, error)

NewPubsubClient provides a pubsub client from PubsubClientOpts.

Types

type MaxConnsPerHost

type MaxConnsPerHost int

type Port

type Port int

type ProjectID

type ProjectID string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL