sinks

package
v0.0.54 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContributoorSink

type ContributoorSink interface {
	// Start initializes and starts the sink.
	Start(ctx context.Context) error
	// Stop gracefully shuts down the sink.
	Stop(ctx context.Context) error
	// HandleEvent processes an event and forwards it to the appropriate destination.
	HandleEvent(ctx context.Context, event events.Event) error
	// Name returns the name of the sink for logging purposes.
	Name() string
}

ContributoorSink defines the interface for event sinks.

func NewStdoutSink

func NewStdoutSink(log *logrus.Logger, config *config.Config, networkName string) (ContributoorSink, error)

NewStdoutSink creates a new StdoutSink.

func NewXatuSink

func NewXatuSink(log *logrus.Logger, config *config.Config, networkName string) (ContributoorSink, error)

NewXatuSink creates a new XatuSink.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL