Documentation ¶
Index ¶
- func NewAction(logger log.Logger, cfg config.Action) (types.Action, error)
- func NewActionLog(cfg config.ActionLog) (*action.Log, error)
- func NewActionNotify(logger log.Logger, cfg config.ActionNotify) (*action.Notify, error)
- func NewActionsMap(logger log.Logger, cfgs map[string]config.Action) (map[string]types.Action, error)
- func NewFormatter(cfg config.Format) (types.Formatter, error)
- func NewMatcher(cfg *config.Matcher) (types.Matcher, error)
- func NewMatchers(cfgs []*config.Matcher) ([]types.Matcher, error)
- func NewNotifier(cfgs []config.NotifyService) (notify.Notifier, error)
- func NewNotifierService(cfg config.NotifyService) (notify.Notifier, error)
- func NewNotifierServices(cfgs []config.NotifyService) ([]notify.Notifier, error)
- func NewPersister(cfg config.Persister) (types.Persister, error)
- func NewPipelines(logger log.Logger, cfg *config.Config) ([]*pipeline.Pipeline, error)
- func NewProcessor(cfg config.Processor, actionsMap map[string]types.Action) (types.Processor, error)
- func NewProcessorsFromMap(processorsMap map[string]processor.Factory, names []string) (processor.Factory, error)
- func NewProcessorsMap(cfgs map[string]config.Processor, actionsMap map[string]types.Action) (map[string]processor.Factory, error)
- func NewReader(logger log.Logger, persister types.Persister, newProcessor processor.Factory, ...) (types.Reader, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewActionNotify ¶
func NewActionsMap ¶
func NewMatcher ¶
NewMatcher creates a new Mather from config. The field is just used for debugging.
func NewNotifier ¶
func NewNotifier(cfgs []config.NotifyService) (notify.Notifier, error)
func NewNotifierService ¶
func NewNotifierService(cfg config.NotifyService) (notify.Notifier, error)
func NewNotifierServices ¶
func NewNotifierServices(cfgs []config.NotifyService) ([]notify.Notifier, error)
func NewPersister ¶
NewPersister cretaes a new Persister from config.
func NewPipelines ¶
func NewProcessor ¶
func NewProcessor(cfg config.Processor, actionsMap map[string]types.Action) (types.Processor, error)
NewProcessor reads config and creates a Processor.
func NewProcessorsFromMap ¶
func NewProcessorsFromMap(processorsMap map[string]processor.Factory, names []string) (processor.Factory, error)
NewProcessorsFromMap reads configs and creates Processors.
func NewProcessorsMap ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.