cloudevent

package
v0.0.0-...-ea047a2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package cloudevent provides an abstraction over the cloudvent sdk. Use this in favor of using the cloudevents sdk directly. This helps in testing, as we have the code under our control. Therefore, it is easier to use seams.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	cev2.Client
}

Client is a wrapper over cev2.Client.

type ClientFactory

type ClientFactory struct{}

func (ClientFactory) NewHTTP

func (c ClientFactory) NewHTTP(opts ...http.Option) (Client, error)

NewHTTP creates a cloudevent client at the HTTP protocol level.

type ClientFactoryInterface

type ClientFactoryInterface interface {
	NewHTTP(opts ...http.Option) (Client, error)
}

ClientFactoryInterface is an interface for the creation of a cloudevent client.

Jump to

Keyboard shortcuts

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