localsink

package
v0.0.194 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCustomEndpointSink

func MakeCustomEndpointSink[T, R any](stream runtime.TypedSinkStream[T, R], dataConsumer DataConsumer[T]) runtime.SinkConsumer[T]

Types

type CustomDataSink

type CustomDataSink struct {
	*runtime.OutputDataSink
	// contains filtered or unexported fields
}

func (*CustomDataSink) Start

func (ds *CustomDataSink) Start(ctx context.Context) error

func (*CustomDataSink) Stop

func (ds *CustomDataSink) Stop(ctx context.Context)

func (*CustomDataSink) WaitGroup added in v0.0.175

func (ds *CustomDataSink) WaitGroup() *sync.WaitGroup

type CustomEndpoint

type CustomEndpoint struct {
	*runtime.DataSinkEndpoint
}

func (*CustomEndpoint) Start

func (ep *CustomEndpoint) Start(ctx context.Context) error

func (*CustomEndpoint) Stop

func (ep *CustomEndpoint) Stop(ctx context.Context)

type CustomEndpointConsumer

type CustomEndpointConsumer interface {
	runtime.OutputEndpointConsumer
	Start(context.Context) error
	Stop(context.Context)
}

type CustomOutputDataSink added in v0.0.175

type CustomOutputDataSink interface {
	runtime.DataSink
	WaitGroup() *sync.WaitGroup
}

type CustomSinkEndpoint

type CustomSinkEndpoint interface {
	runtime.SinkEndpoint
	Start(context.Context) error
	Stop(context.Context)
}

type DataConsumer

type DataConsumer[T any] interface {
	Consume(T) error
	Start(context.Context) error
	Stop(context.Context)
}

type TypedCustomEndpointConsumer

type TypedCustomEndpointConsumer[T, R any] struct {
	*runtime.DataSinkEndpointConsumer[T, R]
	// contains filtered or unexported fields
}

func (*TypedCustomEndpointConsumer[T, R]) Consume

func (ep *TypedCustomEndpointConsumer[T, R]) Consume(value T)

func (*TypedCustomEndpointConsumer[T, R]) SetSinkCallback added in v0.0.186

func (ep *TypedCustomEndpointConsumer[T, R]) SetSinkCallback(callback runtime.SinkCallback[T])

func (*TypedCustomEndpointConsumer[T, R]) Start

func (ep *TypedCustomEndpointConsumer[T, R]) Start(ctx context.Context) error

func (*TypedCustomEndpointConsumer[T, R]) Stop

func (ep *TypedCustomEndpointConsumer[T, R]) Stop(ctx context.Context)

Jump to

Keyboard shortcuts

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