offline

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExportOpt

type ExportOpt struct {
	DataTable    string
	EntityName   string
	FeatureNames []string
	Limit        *uint64
}

type ImportOpt

type ImportOpt struct {
	GroupName string
	Entity    *types.Entity
	Features  types.FeatureList
	Header    []string

	// CsvReader must not contain header
	CsvReader *csv.Reader
}

type JoinOpt

type JoinOpt struct {
	Entity         *types.Entity
	EntityRows     []types.EntityRow
	RevisionRanges []*types.RevisionRange
	Features       types.FeatureList
}

type Store

type Store interface {
	Join(ctx context.Context, opt JoinOpt) (map[string]dbutil.RowMap, error)
	Export(ctx context.Context, opt ExportOpt) (<-chan *types.RawFeatureValueRecord, error)
	Import(ctx context.Context, opt ImportOpt) (int64, string, error)

	TypeTag(dbType string) (string, error)
	io.Closer
}

Directories

Path Synopsis
Package mock_offline is a generated GoMock package.
Package mock_offline is a generated GoMock package.

Jump to

Keyboard shortcuts

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