localsink

package
v0.0.148 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCustomEndpointSink

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

Types

type CustomDataSink

type CustomDataSink struct {
	*runtime.OutputDataSink
}

func (*CustomDataSink) Start

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

func (*CustomDataSink) Stop

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

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 CustomSinkEndpoint

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

type DataConsumer

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

type TypedCustomEndpointConsumer

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

func (*TypedCustomEndpointConsumer[T]) Consume

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

func (*TypedCustomEndpointConsumer[T]) Start

func (*TypedCustomEndpointConsumer[T]) Stop

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

Jump to

Keyboard shortcuts

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