clients

package
Version: v0.0.0-...-d19fc40 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL