googlecloudpubsubsource

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdapter

NewAdapter satisfies pkgadapter.AdapterConstructor.

func NewEnvConfig

func NewEnvConfig() pkgadapter.EnvConfigAccessor

NewEnvConfig satisfies pkgadapter.EnvConfigConstructor.

Types

type GCloudResourceName added in v1.12.0

type GCloudResourceName v1alpha1.GCloudResourceName

GCloudResourceName is a fully qualified Google Cloud resource name which can be decoded by envconfig.

func (*GCloudResourceName) Decode added in v1.12.0

func (n *GCloudResourceName) Decode(value string) error

Decode implements envconfig.Decoder.

func (*GCloudResourceName) String added in v1.12.0

func (n *GCloudResourceName) String() string

String implements fmt.Stringer.

type MessageProcessor

type MessageProcessor interface {
	Process(*pubsub.Message) ([]*cloudevents.Event, error)
}

MessageProcessor converts a Pub/Sub message to a CloudEvent.

type MessageWithRawJSONData added in v1.12.0

type MessageWithRawJSONData struct {
	Data json.RawMessage
	*pubsub.Message
}

MessageWithRawJSONData is an Message with RawMessage-typed JSON data.

Jump to

Keyboard shortcuts

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