package
0.0.0-20240903033607-939890176fa6
Repository: https://github.com/ossf/package-feeds.git
Documentation: pkg.go.dev

# README

Event Handling

package-feeds supports publishing specific application 'events' to be processed.

Configuration

events:
  sink: "stdout"
  filter:
    enabled_event_types: ["LOSSY_FEED"]
    disabled_event_types: []
    enabled_components: ["Feeds"]

Events

N.B Currently only events for potential loss during package polling are available.

Types:

  • "LOSSY_FEED" - Potential loss was detected in a feed

Components:

  • "Feeds" - Events which occur within feed logic

Sinks:

  • "stdout" - Logs events to stdout

# Functions

Creates a filter for use with an event handler, nil can be provided for non values.
No description provided by the author
Creates an event sink which logs events using a provided logrus logger, fields "component" and "event_type" are applied to the logger and warnings are logged for each event.
No description provided by the author

# Constants

Components.
No description provided by the author
Event Types.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author