Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultPoolSize = 5 DefaultNamespace = "__foundation_jobs__" )
View Source
const (
ComponentName = "jobs-enqueuer"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
func NewComponent ¶
func NewComponent(opts ...ComponentOption) *Component
type ComponentOption ¶
type ComponentOption func(*Component)
ComponentOption is an option to `Component`.
func WithAddress ¶
func WithAddress(address string) ComponentOption
WithAddress sets the redis address for the JobsEnqueuer component.
func WithLogger ¶
func WithLogger(logger *logrus.Entry) ComponentOption
WithLogger sets the logger for the JobsEnqueuer component
func WithNamespace ¶
func WithNamespace(namespace string) ComponentOption
WithNamespace sets the namespace for JobsEnqueuer component.
func WithPoolSize ¶
func WithPoolSize(poolSize int) ComponentOption
WithPoolSize sets the pool size for the JobsEnqueuer component.
Click to show internal directories.
Click to hide internal directories.