googlesource

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSource

func NewSource() sdk.Source

Types

type Source

type Source struct {
	sdk.UnimplementedSource
	// contains filtered or unexported fields
}

func (*Source) Ack

func (s *Source) Ack(ctx context.Context, position sdk.Position) error

func (*Source) Configure

func (s *Source) Configure(ctx context.Context, cfg map[string]string) error

func (*Source) Next

func (s *Source) Next(ctx context.Context) (sdk.Record, error)

Next returns the next record from the buffer.

func (*Source) Open

func (s *Source) Open(ctx context.Context, pos sdk.Position) (err error)

func (*Source) Parameters

func (s *Source) Parameters() map[string]sdk.Parameter

Parameters is a map of named Parameters that describe how to configure the Source.

func (*Source) Read

func (s *Source) Read(ctx context.Context) (sdk.Record, error)

func (*Source) ReadGoogleRow

func (s *Source) ReadGoogleRow(ctx context.Context) (err error)

ReadGoogleRow fetches data from endpoint. It creates sdk.record and puts it in response channel

func (*Source) StopIterator

func (s *Source) StopIterator() error

func (*Source) Teardown

func (s *Source) Teardown(ctx context.Context) error

Jump to

Keyboard shortcuts

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