localsource

package
v0.0.196 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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCustomEndpointConsumer

func MakeCustomEndpointConsumer[T any](stream runtime.TypedInputStream[T], dataProducer DataProducer[T]) runtime.Consumer[T]

Types

type CustomDataSource

type CustomDataSource struct {
	*runtime.InputDataSource
	// contains filtered or unexported fields
}

func (*CustomDataSource) Start

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

func (*CustomDataSource) Stop

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

func (*CustomDataSource) WaitGroup

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

type CustomEndpoint

type CustomEndpoint struct {
	*runtime.DataSourceEndpoint
	// contains filtered or unexported fields
}

func (*CustomEndpoint) NextMessage

func (ep *CustomEndpoint) NextMessage()

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.InputEndpointConsumer
	Start(context.Context) error
	Stop(context.Context)
}

type CustomInputDataSource

type CustomInputDataSource interface {
	runtime.DataSource
	WaitGroup() *sync.WaitGroup
}

type CustomInputEndpoint

type CustomInputEndpoint interface {
	runtime.InputEndpoint
	Start(context.Context) error
	Stop(context.Context)
	NextMessage()
}

type DataProducer

type DataProducer[T any] interface {
	Start(ctx context.Context, consumer runtime.Consumer[T]) error
	Stop(context.Context)
}

type TypedCustomEndpointConsumer

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

func (*TypedCustomEndpointConsumer[T]) Consume

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

func (*TypedCustomEndpointConsumer[T]) Start

func (*TypedCustomEndpointConsumer[T]) Stop

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

Jump to

Keyboard shortcuts

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