package
0.0.0-20231027131641-93b1e7503408
Repository: https://github.com/lightstar/golib.git
Documentation: pkg.go.dev
# Functions
MustNew function creates new daemon with provided options and panics on any error.
New function creates new daemon with provided options.
WithConfig option retrieves configuration from provided configuration service.
WithDelay option applies provided process delay in milliseconds.
WithLogger option applies provided logger.
WithName option applies provided daemon name.
WithProcessFunc option applies provided function as processor.
WithProcessor option applies provided implementation of Processor interface.
# Interfaces
ConfigService interface used to obtain configuration from somewhere into some specific structure.
Processor interface.
# Type aliases
Option function that is fed to New and MustNew.
ProcessFunc is a function implementing Processor interface.