system

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// SystemEventsConfReadAhead is the readahead used for system events
	SystemEventsConfReadAhead = "readAhead"
)
View Source
const (
	SystemEventsTransport = "system"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventInterface added in v1.1.0

type EventInterface interface {
	AddSystemEventListener(ns string, el EventListener) error
}

type EventListener

type EventListener func(event *core.EventDelivery) error

type Events

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

Events the system events listener is used for system components that need access to confirmed events, such as the sync<->async bridge.

func (*Events) AddListener

func (se *Events) AddListener(ns string, el EventListener) error

func (*Events) BatchDeliveryRequest added in v1.3.0

func (se *Events) BatchDeliveryRequest(ctx context.Context, connID string, sub *core.Subscription, events []*core.CombinedEventDataDelivery) error

func (*Events) Capabilities

func (se *Events) Capabilities() *events.Capabilities

func (*Events) DeliveryRequest

func (se *Events) DeliveryRequest(ctx context.Context, connID string, sub *core.Subscription, event *core.EventDelivery, data core.DataArray) error

func (*Events) Init

func (se *Events) Init(ctx context.Context, config config.Section) (err error)

func (*Events) InitConfig added in v1.1.0

func (se *Events) InitConfig(config config.Section)

func (*Events) Name

func (se *Events) Name() string

func (*Events) NamespaceRestarted added in v1.3.0

func (se *Events) NamespaceRestarted(ns string, startTime time.Time)

func (*Events) SetHandler added in v1.1.0

func (se *Events) SetHandler(namespace string, handler events.Callbacks) error

func (*Events) ValidateOptions

func (se *Events) ValidateOptions(ctx context.Context, options *core.SubscriptionOptions) error

Jump to

Keyboard shortcuts

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