topics

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithDelay

func WithDelay(duration time.Duration) func(*v1.TopicPublishRequest)

WithDelay - Delay event publishing by the given duration

Types

type PublishOption

type PublishOption = func(*v1.TopicPublishRequest)

type Topic

type Topic interface {
	// Name returns the Topic name.
	Name() string

	// Publish will publish the provided events on the topic.
	Publish(context.Context, map[string]interface{}, ...PublishOption) error
}

Topic for pub/sub async messaging.

type Topics

type Topics interface {
	// Topic - Retrieve a Topic reference
	Topic(name string) Topic
}

Topics

func New

func New() (Topics, error)

New - Construct a new Eventing Client with default options

Jump to

Keyboard shortcuts

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