adapter

package
v0.0.0-...-d0a58c1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package adapter implements a sample receive adapter that generates events at a regular interval.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdapter

func NewAdapter(ctx context.Context, aEnv adapter.EnvConfigAccessor, ceClient cloudevents.Client) adapter.Adapter

func NewEnv

func NewEnv() adapter.EnvConfigAccessor

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

Adapter generates events at a regular interval.

func (*Adapter) Start

func (a *Adapter) Start(ctx context.Context) error

Start runs the adapter. Returns if stopCh is closed or Send() returns an error.

Jump to

Keyboard shortcuts

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