Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdapter ¶
func NewAdapter(ctx context.Context, envAcc pkgadapter.EnvConfigAccessor, ceClient cloudevents.Client) pkgadapter.Adapter
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.
Click to show internal directories.
Click to hide internal directories.