cloudevents

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 5 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents CloudEvents client.

func NewHTTP

func NewHTTP(ctx context.Context, handler Handler, opts ...http.Option) *Client

NewHTTP provides HTTP Protocol client.

func (*Client) Start

func (s *Client) Start(ctx context.Context)

Start sets up the given handler to handle Receive.

type Handler

type Handler func(ctx context.Context, in v2.Event) (*v2.Event, error)

Handler is a function for callback on receipt and handle of a cloudevent.

Jump to

Keyboard shortcuts

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