data_provider

package
v0.38.0-preview.0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataProvider

type DataProvider interface {
	Run(ctx context.Context)
	ID() uuid.UUID
	Topic() string
	Close()
}

type Factory

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

func NewDataProviderFactory

func NewDataProviderFactory(logger zerolog.Logger, streamApi state_stream.API, streamConfig backend.Config) *Factory

func (*Factory) NewDataProvider

func (f *Factory) NewDataProvider(ch chan<- interface{}, topic string) DataProvider

type MockBlockProvider

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

func NewMockBlockProvider

func NewMockBlockProvider(
	ch chan<- interface{},
	topic string,
	logger zerolog.Logger,
	streamApi state_stream.API,
) *MockBlockProvider

func (*MockBlockProvider) Close

func (p *MockBlockProvider) Close()

func (*MockBlockProvider) ID

func (p *MockBlockProvider) ID() uuid.UUID

func (*MockBlockProvider) Run

func (p *MockBlockProvider) Run(ctx context.Context)

func (*MockBlockProvider) Topic

func (p *MockBlockProvider) Topic() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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