sinks

package
v0.0.0-...-27b3d77 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CountingSink

type CountingSink struct {
	// contains filtered or unexported fields
}

func NewCountingSink

func NewCountingSink(expectedCount int64) *CountingSink

func (*CountingSink) Close

func (s *CountingSink) Close() error

func (*CountingSink) DoneChan

func (s *CountingSink) DoneChan() chan int64

func (*CountingSink) Name

func (s *CountingSink) Name() string

func (*CountingSink) Open

func (s *CountingSink) Open(ctx context.Context) error

func (*CountingSink) Send

func (s *CountingSink) Send(ctx context.Context, batch *types.LogBatch) error

type StdoutSink

type StdoutSink struct {
}

func NewStdoutSink

func NewStdoutSink() *StdoutSink

func (*StdoutSink) Close

func (s *StdoutSink) Close() error

func (*StdoutSink) Name

func (s *StdoutSink) Name() string

func (*StdoutSink) Open

func (s *StdoutSink) Open(ctx context.Context) error

func (*StdoutSink) Send

func (s *StdoutSink) Send(ctx context.Context, batch *types.LogBatch) error

type StoreSink

type StoreSink struct {
	// contains filtered or unexported fields
}

func NewStoreSink

func NewStoreSink(config StoreSinkConfig) (*StoreSink, error)

func (*StoreSink) Close

func (s *StoreSink) Close() error

func (*StoreSink) Name

func (s *StoreSink) Name() string

func (*StoreSink) Open

func (s *StoreSink) Open(ctx context.Context) error

func (*StoreSink) Send

func (s *StoreSink) Send(ctx context.Context, batch *types.LogBatch) error

type StoreSinkConfig

type StoreSinkConfig struct {
	Store         storage.Store
	AddAttributes map[string]string
}

Jump to

Keyboard shortcuts

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