events

package
v0.4.26 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudEventsStreamer

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

func NewCloudEventsStreamer

func NewCloudEventsStreamer() *CloudEventsStreamer

func (*CloudEventsStreamer) Publish

func (e *CloudEventsStreamer) Publish(event cloudevents.Event)

func (*CloudEventsStreamer) Stop

func (e *CloudEventsStreamer) Stop()

func (*CloudEventsStreamer) Subscribe

func (e *CloudEventsStreamer) Subscribe(ch chan cloudevents.Event)

func (*CloudEventsStreamer) Unsubscribe

func (e *CloudEventsStreamer) Unsubscribe(ch chan cloudevents.Event)

type EventStreamer added in v0.4.21

type EventStreamer interface {
	Subscribe(ch chan cloudevents.Event)
	Unsubscribe(ch chan cloudevents.Event)
	Publish(event cloudevents.Event)
	Stop()
}

Jump to

Keyboard shortcuts

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