Documentation ¶
Index ¶
- Constants
- type BackendType
- type CreateEntityOpt
- type CreateFeatureOpt
- type CreateGroupOpt
- type CsvDataSource
- type Entity
- type EntityList
- type EntityRow
- type ExportFeatureValuesOpt
- type Feature
- type FeatureDataSet
- type FeatureKV
- type FeatureList
- type FeatureValues
- type Group
- type GroupList
- type ImportOpt
- type JoinOpt
- type JoinResult
- type ListFeatureOpt
- type MetadataStoreConfig
- type OfflineStoreConfig
- type OnlineGetOpt
- type OnlineMultiGetOpt
- type OnlineStoreConfig
- type OomStoreConfig
- type PostgresOpt
- type RawFeatureValueRecord
- type RedisOpt
- type Revision
- type RevisionList
- type SyncOpt
- type UpdateEntityOpt
- type UpdateFeatureOpt
- type UpdateGroupOpt
Constants ¶
View Source
const ( STRING = "string" INT64 = "int64" FLOAT64 = "float64" BOOL = "bool" TIME = "time" BYTES = "bytes" )
View Source
const ( BatchFeatureCategory = "batch" StreamFeatureCategory = "stream" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendType ¶
type BackendType string
const ( POSTGRES BackendType = "postgres" REDIS BackendType = "redis" )
type CreateEntityOpt ¶
type CreateFeatureOpt ¶
type CreateGroupOpt ¶ added in v0.0.3
type CsvDataSource ¶
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)
type ExportFeatureValuesOpt ¶
type Feature ¶
type Feature struct { ID int `db:"id"` Name string `db:"name"` ValueType string `db:"value_type"` DBValueType string `db:"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 FeatureDataSet ¶
func NewFeatureDataSet ¶
func NewFeatureDataSet() FeatureDataSet
type FeatureKV ¶
type FeatureKV struct { FeatureName string FeatureValue interface{} }
func NewFeatureKV ¶
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) 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 string `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 { GroupID int Description string DataSource CsvDataSource Revision *int64 }
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:"backend"` Postgres *PostgresOpt `yaml:"postgres"` }
type OfflineStoreConfig ¶
type OfflineStoreConfig struct { Backend BackendType `yaml:"backend"` Postgres *PostgresOpt `yaml:"postgres"` }
type OnlineGetOpt ¶ added in v0.0.3
type OnlineMultiGetOpt ¶ added in v0.0.3
type OnlineStoreConfig ¶
type OnlineStoreConfig struct { Backend BackendType `yaml:"backend"` Postgres *PostgresOpt `yaml:"postgres"` Redis *RedisOpt `yaml:"redis"` }
type OomStoreConfig ¶
type OomStoreConfig struct { MetadataStore MetadataStoreConfig `yaml:"metadata-store"` OfflineStore OfflineStoreConfig `yaml:"offline-store"` OnlineStore OnlineStoreConfig `yaml:"online-store"` }
type PostgresOpt ¶
type RawFeatureValueRecord ¶
type RawFeatureValueRecord struct { Record []interface{} Error error }
func (*RawFeatureValueRecord) EntityKey ¶
func (r *RawFeatureValueRecord) EntityKey() string
func (*RawFeatureValueRecord) ValueAt ¶
func (r *RawFeatureValueRecord) ValueAt(i int) interface{}
type Revision ¶
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)
type UpdateEntityOpt ¶
type UpdateFeatureOpt ¶
type UpdateGroupOpt ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.