eventhub

package
v0.0.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventHubAuthSAS = "SAS"
	ProviderType    = abstract.ProviderType("eventhub")
)

Variables

This section is empty.

Functions

func New

func NewSource

func NewSource(transferID string, cfg *EventHubSource, logger log.Logger, registry metrics.Registry) (abstract.Source, error)

Types

type EventHubAuth

type EventHubAuth struct {
	Method, KeyName string
	KeyValue        server.SecretString
}

type EventHubSource

type EventHubSource struct {
	NamespaceName     string
	HubName           string
	ConsumerGroup     string
	Topic             string
	StartingOffset    string
	StartingTimeStamp *time.Time
	Auth              *EventHubAuth
	Transformer       *server.DataTransformOptions

	ParserConfig map[string]interface{}
}

func (*EventHubSource) GetProviderType

func (s *EventHubSource) GetProviderType() abstract.ProviderType

func (*EventHubSource) IsAppendOnly

func (s *EventHubSource) IsAppendOnly() bool

func (*EventHubSource) IsDefaultMirror

func (s *EventHubSource) IsDefaultMirror() bool

func (*EventHubSource) IsSource

func (s *EventHubSource) IsSource()

func (*EventHubSource) Parser

func (s *EventHubSource) Parser() map[string]interface{}

func (*EventHubSource) Validate

func (s *EventHubSource) Validate() error

func (*EventHubSource) WithDefaults

func (s *EventHubSource) WithDefaults()

type Provider

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

func (*Provider) Source

func (p *Provider) Source() (abstract.Source, error)

func (*Provider) Type

func (p *Provider) Type() abstract.ProviderType

type Source

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

func (*Source) Run

func (s *Source) Run(sink abstract.AsyncSink) error

func (*Source) Stop

func (s *Source) Stop()

Jump to

Keyboard shortcuts

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