Documentation ¶
Index ¶
- Constants
- func NewSource(src *SampleSource, transferID string, logger log.Logger, ...) (abstract.Source, error)
- type IotData
- type Provider
- type SampleSource
- type Source
- type Storage
- func (s *Storage) Close()
- func (s *Storage) EstimateTableRowsCount(_ abstract.TableID) (uint64, error)
- func (s *Storage) ExactTableRowsCount(_ abstract.TableID) (uint64, error)
- func (s *Storage) LoadTable(ctx context.Context, _ abstract.TableDescription, pusher abstract.Pusher) error
- func (s *Storage) Ping() error
- func (s *Storage) TableExists(_ abstract.TableID) (bool, error)
- func (s *Storage) TableList(filter abstract.IncludeTableList) (abstract.TableMap, error)
- func (s *Storage) TableSchema(ctx context.Context, table abstract.TableID) (*abstract.TableSchema, error)
- type StreamingData
- type UserActivities
Constants ¶
View Source
const ProviderType = abstract.ProviderType("sample")
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IotData ¶
type IotData struct {
// contains filtered or unexported fields
}
func (*IotData) ToChangeItem ¶
func (i *IotData) ToChangeItem(offset int64) abstract.ChangeItem
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) Activate ¶
func (p *Provider) Activate(ctx context.Context, task *model.TransferOperation, table abstract.TableMap, callbacks providers.ActivateCallbacks) error
func (*Provider) Type ¶
func (p *Provider) Type() abstract.ProviderType
type SampleSource ¶
type SampleSource struct { SampleType string TableName string MaxSampleData int64 MinSleepTime time.Duration SnapshotEventCount int64 }
func RecipeSource ¶
func RecipeSource() *SampleSource
func (*SampleSource) GetProviderType ¶
func (s *SampleSource) GetProviderType() abstract.ProviderType
func (*SampleSource) IsSource ¶
func (s *SampleSource) IsSource()
func (*SampleSource) Validate ¶
func (s *SampleSource) Validate() error
func (*SampleSource) WithDefaults ¶
func (s *SampleSource) WithDefaults()
type Storage ¶
type Storage struct { SampleType string SnapshotEventCount int64 TableName string MaxSampleData int64 MinSleepTime time.Duration // contains filtered or unexported fields }
func NewStorage ¶
func NewStorage(config *SampleSource, log log.Logger) (*Storage, error)
func (*Storage) EstimateTableRowsCount ¶
func (*Storage) ExactTableRowsCount ¶
func (*Storage) TableSchema ¶
type StreamingData ¶
type StreamingData interface { TableName() abstract.TableID ToChangeItem(offset int64) abstract.ChangeItem }
type UserActivities ¶
type UserActivities struct {
// contains filtered or unexported fields
}
func NewUserActivities ¶
func NewUserActivities(table string) *UserActivities
func (*UserActivities) TableName ¶
func (u *UserActivities) TableName() abstract.TableID
func (*UserActivities) ToChangeItem ¶
func (u *UserActivities) ToChangeItem(offset int64) abstract.ChangeItem
Click to show internal directories.
Click to hide internal directories.