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 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 WithRedisPool ¶
func WithRedisPool(redisPool *redis.Pool) ComponentOption
WithRedisPool sets the redis pool for JobsEnqueuer component.
Click to show internal directories.
Click to hide internal directories.