Documentation
¶
Index ¶
- type BackendType
- type BigQueryOpt
- type CassandraOpt
- type Category
- type ChannelExportOpt
- type ChannelJoinOpt
- type CreateEntityOpt
- type CreateFeatureOpt
- type CreateGroupOpt
- type CsvFileDataSource
- type CsvReaderDataSource
- type DataSourceType
- type DataTableFieldSchema
- type DataTableSchema
- type DynamoDBOpt
- type Entity
- type EntityList
- type EntityRow
- type ExportOpt
- type ExportRecord
- type ExportResult
- type Feature
- type FeatureList
- func (l FeatureList) Copy() FeatureList
- func (l FeatureList) Filter(filter func(*Feature) bool) (rs FeatureList)
- func (l FeatureList) Find(find func(*Feature) bool) *Feature
- func (l *FeatureList) FullNames() (fullNames []string)
- func (l FeatureList) GroupIDs() (ids []int)
- func (l *FeatureList) IDs() (ids []int)
- func (l *FeatureList) Len() int
- func (l *FeatureList) Names() (names []string)
- type FeatureValues
- type Group
- type GroupList
- type ImportOpt
- type JoinOpt
- type JoinResult
- type ListFeatureOpt
- type MetadataStoreConfig
- type MySQLOpt
- type OfflineStoreConfig
- type OnlineGetOpt
- type OnlineMultiGetOpt
- type OnlineStoreConfig
- type OomStoreConfig
- type PostgresOpt
- type PushOpt
- type RedisOpt
- type RedshiftOpt
- type Revision
- type RevisionList
- type SQLiteOpt
- type SnowflakeOpt
- type StreamRecord
- type SyncOpt
- type TableLinkDataSource
- type TiKVOpt
- type UpdateEntityOpt
- type UpdateFeatureOpt
- type UpdateGroupOpt
- type ValueType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendType ¶
type BackendType string
const ( BackendPostgres BackendType = "postgres" BackendRedis BackendType = "redis" BackendMySQL BackendType = "mysql" BackendSQLite BackendType = "sqlite" BackendSnowflake BackendType = "snowflake" BackendDynamoDB BackendType = "dynamodb" BackendCassandra BackendType = "cassandra" BackendBigQuery BackendType = "bigquery" BackendRedshift BackendType = "redshift" BackendTiDB BackendType = "tidb" BackendTiKV BackendType = "tikv" )
type BigQueryOpt ¶ added in v0.0.4
type CassandraOpt ¶ added in v0.0.4
type ChannelExportOpt ¶ added in v0.0.4
type ChannelJoinOpt ¶ added in v0.0.4
type CreateEntityOpt ¶
type CreateFeatureOpt ¶
type CreateGroupOpt ¶ added in v0.0.3
type CsvFileDataSource ¶ added in v0.0.4
type CsvReaderDataSource ¶ added in v0.0.4
type DataSourceType ¶ added in v0.0.4
type DataSourceType int
const ( CSV_FILE DataSourceType = iota CSV_READER TABLE_LINK )
type DataTableFieldSchema ¶ added in v0.0.4
type DataTableSchema ¶ added in v0.0.4
type DataTableSchema struct {
Fields []DataTableFieldSchema
}
type DynamoDBOpt ¶ added in v0.0.4
type Entity ¶
type EntityList ¶ added in v0.0.2
type EntityList []*Entity
func (EntityList) Copy ¶ added in v0.0.2
func (l EntityList) Copy() EntityList
func (*EntityList) Filter ¶ added in v0.0.2
func (l *EntityList) Filter(filter func(*Entity) bool) (rs EntityList)
func (*EntityList) Find ¶ added in v0.0.2
func (l *EntityList) Find(find func(*Entity) bool) *Entity
func (EntityList) Len ¶ added in v0.0.4
func (l EntityList) Len() int
type ExportRecord ¶ added in v0.0.4
type ExportRecord []interface{}
func (ExportRecord) EntityKey ¶ added in v0.0.4
func (r ExportRecord) EntityKey() string
func (ExportRecord) ValueAt ¶ added in v0.0.4
func (r ExportRecord) ValueAt(i int) interface{}
type ExportResult ¶ added in v0.0.4
type ExportResult struct {
Header []string
Data <-chan ExportRecord
// contains filtered or unexported fields
}
func NewExportResult ¶ added in v0.0.4
func NewExportResult(header []string, data <-chan ExportRecord, error <-chan error) *ExportResult
func (*ExportResult) CheckStreamError ¶ added in v0.0.4
func (e *ExportResult) CheckStreamError() error
ATTENTION: call this method only after you consume all elements from Data channel; otherwise, it will block the Data channel.
type Feature ¶
type Feature struct {
ID int `db:"id"`
Name string `db:"name"`
FullName string `db:"full_name"`
ValueType ValueType `db:"value_type"`
Description string `db:"description"`
CreateTime time.Time `db:"create_time"`
ModifyTime time.Time `db:"modify_time"`
GroupID int `db:"group_id"`
Group *Group
}
func (*Feature) OnlineRevisionID ¶
type FeatureList ¶
type FeatureList []*Feature
func (FeatureList) Copy ¶ added in v0.0.2
func (l FeatureList) Copy() FeatureList
func (FeatureList) Filter ¶
func (l FeatureList) Filter(filter func(*Feature) bool) (rs FeatureList)
func (FeatureList) Find ¶ added in v0.0.2
func (l FeatureList) Find(find func(*Feature) bool) *Feature
func (*FeatureList) FullNames ¶ added in v0.0.4
func (l *FeatureList) FullNames() (fullNames []string)
func (FeatureList) GroupIDs ¶ added in v0.0.4
func (l FeatureList) GroupIDs() (ids []int)
func (*FeatureList) IDs ¶ added in v0.0.3
func (l *FeatureList) IDs() (ids []int)
func (*FeatureList) Len ¶
func (l *FeatureList) Len() int
func (*FeatureList) Names ¶
func (l *FeatureList) Names() (names []string)
type FeatureValues ¶ added in v0.0.2
type FeatureValues struct {
EntityName string
EntityKey string
FeatureFullNames []string
FeatureValueMap map[string]interface{}
}
func (*FeatureValues) FeatureValueSlice ¶ added in v0.0.2
func (fv *FeatureValues) FeatureValueSlice() []interface{}
type Group ¶ added in v0.0.3
type Group struct {
ID int `db:"id"`
Name string `db:"name"`
Category Category `db:"category"`
Description string `db:"description"`
CreateTime time.Time `db:"create_time"`
ModifyTime time.Time `db:"modify_time"`
EntityID int `db:"entity_id"`
OnlineRevisionID *int `db:"online_revision_id"`
Entity *Entity
}
type ImportOpt ¶ added in v0.0.3
type ImportOpt struct {
GroupName string
Description string
Revision *int64
DataSourceType DataSourceType
CsvFileDataSource *CsvFileDataSource
CsvReaderDataSource *CsvReaderDataSource
TableLinkDataSource *TableLinkDataSource
}
type JoinResult ¶ added in v0.0.2
type JoinResult struct {
Header []string
Data <-chan []interface{}
}
type ListFeatureOpt ¶
type MetadataStoreConfig ¶
type MetadataStoreConfig struct {
Backend BackendType `yaml:"-"`
Postgres *PostgresOpt `yaml:"postgres"`
MySQL *MySQLOpt `yaml:"mysql"`
SQLite *SQLiteOpt `yaml:"sqlite"`
TiDB *MySQLOpt `yaml:"tidb"`
}
func (*MetadataStoreConfig) Validate ¶ added in v0.0.4
func (cfg *MetadataStoreConfig) Validate() error
type OfflineStoreConfig ¶
type OfflineStoreConfig struct {
Backend BackendType `yaml:"-"`
Postgres *PostgresOpt `yaml:"postgres"`
MySQL *MySQLOpt `yaml:"mysql"`
Snowflake *SnowflakeOpt `yaml:"snowflake"`
BigQuery *BigQueryOpt `yaml:"bigquery"`
Redshift *RedshiftOpt `yaml:"redshift"`
SQLite *SQLiteOpt `yaml:"sqlite"`
TiDB *MySQLOpt `yaml:"tidb"`
}
func (*OfflineStoreConfig) Validate ¶ added in v0.0.4
func (cfg *OfflineStoreConfig) Validate() error
type OnlineGetOpt ¶ added in v0.0.3
type OnlineMultiGetOpt ¶ added in v0.0.3
type OnlineStoreConfig ¶
type OnlineStoreConfig struct {
Backend BackendType `yaml:"-"`
Postgres *PostgresOpt `yaml:"postgres"`
Redis *RedisOpt `yaml:"redis"`
MySQL *MySQLOpt `yaml:"mysql"`
DynamoDB *DynamoDBOpt `yaml:"dynamodb"`
Cassandra *CassandraOpt `yaml:"cassandra"`
SQLite *SQLiteOpt `yaml:"sqlite"`
TiDB *MySQLOpt `yaml:"tidb"`
TiKV *TiKVOpt `yaml:"tikv"`
}
func (*OnlineStoreConfig) Validate ¶ added in v0.0.4
func (cfg *OnlineStoreConfig) Validate() error
type OomStoreConfig ¶
type OomStoreConfig struct {
MetadataStore MetadataStoreConfig `yaml:"metadata-store"`
OfflineStore OfflineStoreConfig `yaml:"offline-store"`
OnlineStore OnlineStoreConfig `yaml:"online-store"`
}
func (*OomStoreConfig) Validate ¶ added in v0.0.4
func (cfg *OomStoreConfig) Validate() error
type PostgresOpt ¶
type RedshiftOpt ¶ added in v0.0.4
type RedshiftOpt = PostgresOpt
type Revision ¶
type Revision struct {
ID int `db:"id"`
Revision int64 `db:"revision"`
SnapshotTable string `db:"snapshot_table"`
CdcTable string `db:"cdc_table"`
Anchored bool `db:"anchored"`
Description string `db:"description"`
CreateTime time.Time `db:"create_time"`
ModifyTime time.Time `db:"modify_time"`
GroupID int `db:"group_id"`
Group *Group
}
type RevisionList ¶ added in v0.0.2
type RevisionList []*Revision
func (RevisionList) Copy ¶ added in v0.0.2
func (l RevisionList) Copy() RevisionList
func (RevisionList) Filter ¶ added in v0.0.2
func (l RevisionList) Filter(filter func(*Revision) bool) (rs RevisionList)
func (RevisionList) Find ¶ added in v0.0.2
func (l RevisionList) Find(find func(*Revision) bool) *Revision
func (RevisionList) GroupIDs ¶ added in v0.0.4
func (l RevisionList) GroupIDs() []int
type SnowflakeOpt ¶ added in v0.0.4
type StreamRecord ¶ added in v0.0.4
func (*StreamRecord) ToRow ¶ added in v0.0.4
func (r *StreamRecord) ToRow() []interface{}
type TableLinkDataSource ¶ added in v0.0.4
type TableLinkDataSource struct {
TableName string
}
type UpdateEntityOpt ¶
type UpdateFeatureOpt ¶
type UpdateGroupOpt ¶ added in v0.0.3
Source Files
¶
Click to show internal directories.
Click to hide internal directories.