Documentation ¶
Index ¶
Constants ¶
View Source
const ConcurrentUploads = 50
Variables ¶
This section is empty.
Functions ¶
func NewDispatcher ¶
func NewDispatcher(uploaders []Uploader) *dispatcher
func NewUploader ¶
func NewUploader(kustoCli ingest.QueryClient, opts UploaderOpts) *uploader
Types ¶
type IngestionMapping ¶
type Syncer ¶
type Syncer struct { KustoCli mgmt // contains filtered or unexported fields }
func NewSyncer ¶
func NewSyncer(kustoCli mgmt, database string, defaultMapping storage.SchemaMapping, st SampleType) *Syncer
func (*Syncer) EnsureMapping ¶
EnsureMapping creates a schema mapping for the specified table if it does not exist. It returns the name of the mapping.
func (*Syncer) EnsureTable ¶
type Uploader ¶
type Uploader interface { service.Component Database() string // UploadQueue returns a channel that can be used to upload files to kusto. UploadQueue() chan *cluster.Batch // Mgmt executes a management query against the database. Mgmt(ctx context.Context, query kusto.Statement, options ...kusto.MgmtOption) (*kusto.RowIterator, error) }
func NewFakeUploader ¶
type UploaderOpts ¶
type UploaderOpts struct { StorageDir string Database string ConcurrentUploads int Dimensions []string DefaultMapping storage.SchemaMapping SampleType SampleType }
Click to show internal directories.
Click to hide internal directories.