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 DataTableTimeRange
- 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) FilterFullNames(fullNames []string) (rs FeatureList)
- func (l FeatureList) Find(find func(*Feature) bool) *Feature
- func (l FeatureList) FindMissingFeatures(featureNames []string) []string
- func (l *FeatureList) FullNames() (fullNames []string)
- func (l FeatureList) GetSharedEntity() (*Entity, error)
- func (l FeatureList) GroupByGroupID() map[int]FeatureList
- func (l FeatureList) GroupByGroupName() map[string]FeatureList
- func (l FeatureList) GroupIDs() (ids []int)
- func (l FeatureList) GroupNames() []string
- func (l *FeatureList) IDs() (ids []int)
- func (l *FeatureList) Len() int
- func (l *FeatureList) Names() (names []string)
- type FeatureValues
- type Group
- type GroupList
- func (l GroupList) Copy() GroupList
- func (l GroupList) EntityIDs() []int
- func (l GroupList) Filter(filter func(*Group) bool) (rs GroupList)
- func (l GroupList) Find(find func(*Group) bool) *Group
- func (l GroupList) IDs() (ids []int)
- func (l GroupList) Len() int
- func (l GroupList) Names() (names []string)
- type ImportOpt
- type JoinOpt
- type JoinRecord
- type JoinResult
- type ListEntityOpt
- type ListFeatureOpt
- type ListGroupOpt
- type MetadataStoreConfig
- type MySQLOpt
- type OfflineStoreConfig
- type OnlineGetOpt
- type OnlineMultiGetOpt
- type OnlineStoreConfig
- type OomStoreConfig
- type PostgresOpt
- type PushOpt
- type PushProcessorConfig
- type RedisOpt
- type RedshiftOpt
- type Revision
- type RevisionList
- type SQLiteOpt
- type SnowflakeOpt
- type StreamRecord
- type SyncOpt
- type TableLinkDataSource
- type TableType
- 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 TimeRange DataTableTimeRange }
type DataTableTimeRange ¶ added in v0.1.0
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) IDs ¶ added in v0.1.0
func (l EntityList) IDs() (ids []int)
func (EntityList) Len ¶ added in v0.0.4
func (l EntityList) Len() int
func (EntityList) Names ¶ added in v0.1.0
func (l EntityList) Names() (names []string)
type ExportRecord ¶ added in v0.0.4
type ExportRecord struct { Record []interface{} Error error }
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 }
func NewExportResult ¶ added in v0.0.4
func NewExportResult(header []string, data <-chan ExportRecord) *ExportResult
type Feature ¶
type Feature struct { ID int `db:"id"` Name string `db:"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) DBFullName ¶ added in v0.1.0
func (f *Feature) DBFullName(backend BackendType) string
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) FilterFullNames ¶ added in v0.1.0
func (l FeatureList) FilterFullNames(fullNames []string) (rs FeatureList)
func (FeatureList) Find ¶ added in v0.0.2
func (l FeatureList) Find(find func(*Feature) bool) *Feature
func (FeatureList) FindMissingFeatures ¶ added in v0.1.0
func (l FeatureList) FindMissingFeatures(featureNames []string) []string
func (*FeatureList) FullNames ¶ added in v0.0.4
func (l *FeatureList) FullNames() (fullNames []string)
func (FeatureList) GetSharedEntity ¶ added in v0.1.0
func (l FeatureList) GetSharedEntity() (*Entity, error)
func (FeatureList) GroupByGroupID ¶ added in v0.1.0
func (l FeatureList) GroupByGroupID() map[int]FeatureList
func (FeatureList) GroupByGroupName ¶ added in v0.1.0
func (l FeatureList) GroupByGroupName() map[string]FeatureList
func (FeatureList) GroupIDs ¶ added in v0.0.4
func (l FeatureList) GroupIDs() (ids []int)
func (FeatureList) GroupNames ¶ added in v0.1.0
func (l FeatureList) GroupNames() []string
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 FeatureNames []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"` SnapshotInterval int `db:"snapshot_interval"` 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 JoinRecord ¶ added in v0.1.0
type JoinRecord struct { Record []interface{} Error error }
type JoinResult ¶ added in v0.0.2
type JoinResult struct { Header []string Data <-chan JoinRecord }
type ListEntityOpt ¶ added in v0.1.0
type ListEntityOpt struct {
EntityNames *[]string
}
type ListFeatureOpt ¶
type ListGroupOpt ¶ added in v0.1.0
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
func (*OnlineGetOpt) Validate ¶
func (o *OnlineGetOpt) Validate() error
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"` PushProcessor *PushProcessorConfig `yaml:"push-processor"` }
func (*OomStoreConfig) Validate ¶ added in v0.0.4
func (cfg *OomStoreConfig) Validate() error
type PostgresOpt ¶
type PushProcessorConfig ¶ added in v0.1.0
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) Before ¶ added in v0.1.0
func (l RevisionList) Before(unixMilli int64) *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.