memory

package
v0.0.0-...-36aec5d Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultRetryCount      = 5
	DefaultRetryWaitSecond = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryPubSubConfig

type InMemoryPubSubConfig struct {
	Name                      string `json:"name"`
	SubscriberRetryCount      int    `json:"subscriberRetryCount"`
	SubscriberRetryWaitSecond int    `json:"subscriberRetryWaitSecond"`
}

func InMemoryPubSubConfigFromMap

func InMemoryPubSubConfigFromMap(properties map[string]string) (InMemoryPubSubConfig, error)

type InMemoryPubSubProvider

type InMemoryPubSubProvider struct {
	Config      InMemoryPubSubConfig               `json:"config"`
	Subscribers map[string][]v1alpha2.EventHandler `json:"subscribers"`
	Context     *contexts.ManagerContext
}

func (*InMemoryPubSubProvider) Clone

func (*InMemoryPubSubProvider) ID

func (*InMemoryPubSubProvider) Init

func (*InMemoryPubSubProvider) InitWithMap

func (i *InMemoryPubSubProvider) InitWithMap(properties map[string]string) error

func (*InMemoryPubSubProvider) Publish

func (i *InMemoryPubSubProvider) Publish(topic string, event v1alpha2.Event) error

func (*InMemoryPubSubProvider) SetContext

func (s *InMemoryPubSubProvider) SetContext(ctx *contexts.ManagerContext)

func (*InMemoryPubSubProvider) Subscribe

func (i *InMemoryPubSubProvider) Subscribe(topic string, handler v1alpha2.EventHandler) error

Jump to

Keyboard shortcuts

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