Discover Packages
github.com/Bio-OS/bioos
pkg
eventbus
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: May 31, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 1 module, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
DefaultWorkers = 5
DefaultBatchSize = 100
DefaultSyncPeriod = time .Second * 30
DefaultMaxRetries = 10
DefaultDequeueTimeout = time .Minute * 5
DefaultRunningTimeout = time .Hour * 24 * 365
)
type Options struct {
MaxRetries int `json:"maxRetries" mapstructure:"maxRetries"`
SyncPeriod time .Duration `json:"syncPeriod" mapstructure:"syncPeriod"`
BatchSize int `json:"batchSize" mapstructure:"batchSize"`
Workers int `json:"workers" mapstructure:"workers"`
DequeueTimeout time .Duration `json:"dequeueTimeout" mapstructure:"dequeueTimeout"`
RunningTimeout time .Duration `json:"runningTimeout" mapstructure:"runningTimeout"`
}
NewOptions new an event bus option.
AddFlags add event bus flags
Enabled check if event bus is enabled
Validate validate log options is valid.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.