kinesis

package
v0.0.0-rc14 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExpectedBitLength = 186
	SequenceMask      = (1 << 4) - 1
)
View Source
const ProviderType = abstract.ProviderType("kinesis")

Variables

This section is empty.

Functions

func CreateStream

func CreateStream(streamName string, client *kinesis.Kinesis) error

func New

func New(lgr log.Logger, registry metrics.Registry, cp cpclient.Coordinator, transfer *model.Transfer) providers.Provider

func NewClient

func NewClient(src *KinesisSource) (*kinesis.Kinesis, error)

func Prepare

func Prepare(img string) (string, error)

func PutRecord

func PutRecord(src *KinesisSource, data []byte, key string) error

Types

type KinesisSource

type KinesisSource struct {
	Endpoint     string
	Region       string
	Stream       string
	BufferSize   int
	AccessKey    string
	SecretKey    model.SecretString
	ParserConfig map[string]interface{}
}

func MustSource

func MustSource() *KinesisSource

func SourceRecipe

func SourceRecipe() (*KinesisSource, error)

func (*KinesisSource) GetProviderType

func (k *KinesisSource) GetProviderType() abstract.ProviderType

func (*KinesisSource) IsAppendOnly

func (k *KinesisSource) IsAppendOnly() bool

func (*KinesisSource) IsSource

func (k *KinesisSource) IsSource()

func (*KinesisSource) Validate

func (k *KinesisSource) Validate() error

func (*KinesisSource) WithDefaults

func (k *KinesisSource) 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 NewSource

func NewSource(
	transferID string,
	cp coordinator.Coordinator,
	cfg *KinesisSource,
	logger log.Logger,
	registry metrics.Registry,
) (*Source, error)

func (*Source) Fetch

func (s *Source) Fetch() ([]abstract.ChangeItem, error)

func (*Source) Run

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

func (*Source) Stop

func (s *Source) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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