Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accessor ¶
type Accessor interface { // Gets all projection instances GetAll() ([]Instance, error) // Gets all projection instances created for specific entity Get(id int64) Instance // TODO // Gets type/definition GetType() (*Definition, error) // TODO: experimal attributes API // Finds instances based on attributes Find(attributes map[string]values.Value, orderBy []query.OrderClause) ([]Instance, error) FindByQuery(q Query) ([]Instance, error) AwaitConverge() }
ProjectionAccessor exposes access to projection instances retrieval for domain engine
type ComputeFunc ¶
type Definition ¶
type Definition struct { Name string Fields field.StructType BaseSource entity.Key OtherSources map[string]EntityProjectionOtherSource // Version of projection definition. Instance is recomputed, if instance's version differs from definition's version. Version int64 Compute ComputeFunc }
type Instance ¶
type Instance interface { GetType() string // TODO: strong typing GetId() int64 GetAllAttributes() values.Values GetAttribute(name string) (value interface{}) }
Instance is an instance of specific projection for specific EntityInstance
type Query ¶
type Query struct { Root string // TODO: strong typing Where query.Expression SortBy []query.OrderClause }
Click to show internal directories.
Click to hide internal directories.