bus

package
v0.0.0-...-60192f8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package bus provides Readeck's message bus and task executor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Events

func Events() superbus.EventManager

Events returns the default event manager.

func Load

func Load() error

Load loads the configuration and prepares the worker queue.

func LoadCustom

func LoadCustom(p string, em superbus.EventManager, s superbus.Store)

LoadCustom loads a custom EventManager and Store. Used for tests.

func OnReady

func OnReady(f func())

OnReady lets you add functions that are called when the bus is loaded.

func Protocol

func Protocol() string

Protocol returns the superbus protocol in use.

func Store

func Store() superbus.Store

Store returns the default store.

func Tasks

func Tasks() *superbus.TaskManager

Tasks returns the default task manager.

Types

This section is empty.

Jump to

Keyboard shortcuts

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