Versions in this module Expand all Collapse all v0 v0.0.3 Apr 10, 2019 Changes in this version + var DoesNotExistError = xrr.Xrror("A %s named %s does not exist.").Out + var EmitTypeError = xrr.Xrror("unable to emit item as %s").Out + var ExistsError = xrr.Xrror("A %s named %s already exists.").Out + var NoConstructorError = xrr.Xrror("Constructor with tag %s does not exist.").Out + var NotFoundError = xrr.Xrror("%s named %s not found").Out + func DeqComponent(e CEnv, rcs []*RawComponent) error + func DeqEntity(e CEnv, res []*RawEntity) error + func NewData(n float64) *data.Vector + func NewRaw(e CEnv) *raw + func SetConstructor(cns ...Constructor) error + type CEnv interface + Apply func([]string, *data.Vector, ...MapFn) error + type Component interface + Defines func() []string + Features func() []string + type Components interface + GetComponent func(float64, string, ...string) []*data.Vector + ListComponents func() []Component + MustGetComponent func(float64, string, ...string) []*data.Vector + SetComponent func(...Component) error + SetRawComponent func(...*RawComponent) error + func NewComponents(e CEnv) Components + type Constructor interface + Construct func(string, *RawFeature, CEnv) Feature + Order func() int + func DefaultConstructor(tag string, fn ConstructorFn) Constructor + func GetConstructor(key string) (Constructor, bool) + func ListConstructors() []Constructor + func NewConstructor(tag string, order int, fn ConstructorFn) Constructor + type ConstructorFn func(string, *RawFeature, CEnv) (Informer, Emitter, Mapper) + type Constructors interface + GetConstructor func(string) (Constructor, bool) + ListConstructors func() []Constructor + SetConstructor func(...Constructor) error + var Internal Constructors + func NewConstructors() Constructors + type Detailer interface + type EmitFn func() data.Item + type Emitter interface + Emit func() data.Item + EmitBool func() (data.BoolItem, error) + EmitFloat func() (data.Float64Item, error) + EmitInt func() (data.IntItem, error) + EmitString func() (data.StringItem, error) + EmitStrings func() (data.StringsItem, error) + EmitVector func() (data.VectorItem, error) + func NewEmitter(efn EmitFn) Emitter + type Entities interface + GetEntity func(float64, string) []*data.Vector + ListEntities func() []Entity + MustGetEntity func(float64, string) []*data.Vector + SetEntity func(...Entity) error + SetRawEntity func(...*RawEntity) error + func NewEntities(e CEnv) Entities + type Entity interface + Components func() []string + Defines func() []string + type Feature interface + func NewFeature(i Informer, e Emitter, m Mapper) Feature + type FeatureGroup struct + func DecodeFeatureGroup(s string) (*FeatureGroup, error) + func (fg *FeatureGroup) Bytes() ([]byte, error) + func (fg *FeatureGroup) Compress() *bytes.Buffer + func (fg *FeatureGroup) List() []RawFeature + func (fg *FeatureGroup) Value() string + type Features interface + AddFeature func(...Feature) + GetFeature func(string) Feature + GetGroup func(string) *FeatureGroup + List func(string) []RawFeature + MustGetFeature func(string) Feature + Remove func(...string) error + SetFeature func(*RawFeature) error + func NewFeatures(e CEnv) Features + type Grouper interface + Group func() []string + IsGroup func(string) bool + type Informer interface + func NewInformer(f string, g []string, t string, r []string, v []string) Informer + type MapFn func(*data.Vector) + type Mapper interface + Map func(*data.Vector) + func NewMapper(mfn MapFn) Mapper + type Parenter interface + From func() string + type Raw interface + AddRaw func(...*RawFeature) error + Dequeue func(...string) + Queue func([]byte) error + type RawComponent struct + Defines []*RawFeature + Features []*RawFeature + Tag string + type RawEntity struct + Components []*RawComponent + Defines []*RawFeature + Tag string + type RawFeature struct + Apply string + Constructor Constructor + Group []string + Tag string + Values []string + func (r *RawFeature) MustGetValues() []string + type Tagger interface + Tag func() string + type Transmitter interface + RawFeature func() RawFeature + type Valuer interface + Length func() int + Raw func() string + Values func() []string