eventbus

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventbus

func NewEventbus(cfg *eb.Config) *eventbus

Types

type ReadableLogsResult

type ReadableLogsResult struct {
	Eventlogs []*record.Eventlog
	Err       error
}

type ReadableLogsWatcher

type ReadableLogsWatcher struct {
	*primitive.Watcher
	// contains filtered or unexported fields
}

func WatchReadableLogs

func WatchReadableLogs(bus *eventbus) *ReadableLogsWatcher

func (*ReadableLogsWatcher) Chan

func (w *ReadableLogsWatcher) Chan() <-chan *ReadableLogsResult

func (*ReadableLogsWatcher) Start

func (w *ReadableLogsWatcher) Start()

type WritableLogsResult

type WritableLogsResult struct {
	Eventlogs []*record.Eventlog
	Err       error
}

type WritableLogsWatcher

type WritableLogsWatcher struct {
	*primitive.Watcher
	// contains filtered or unexported fields
}

func WatchWritableLogs

func WatchWritableLogs(bus *eventbus) *WritableLogsWatcher

func (*WritableLogsWatcher) Chan

func (w *WritableLogsWatcher) Chan() <-chan *WritableLogsResult

func (*WritableLogsWatcher) Start

func (w *WritableLogsWatcher) Start()

Jump to

Keyboard shortcuts

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