clients

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 10 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 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

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