sink

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 26 Imported by: 0

README

sink

Contains interfaces and methods for sinking data to external services. As a general rule, sinks should support all formats of data if possible.

Each sink must use a select statement to read data from its channel and check if context was cancelled to prevent goroutine leaks (learn more about goroutine leaks here).

Information for each sink is available in the GoDoc.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sink

type Sink interface {
	Send(context.Context, *config.Channel) error
}

func New added in v0.8.0

func New(cfg config.Config) (Sink, error)

New returns a configured Sink from a sink configuration.

Jump to

Keyboard shortcuts

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