Documentation ¶
Index ¶
Constants ¶
View Source
const ( TentacleTypeUndefined = "undefined" TentacleTypeEntity = "entity" TentacleTypeMapper = "mapper" WatchKeyDelimiter = "." )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mapper ¶
type Mapper interface { // ID returns mapper id. ID() string // String returns MQL text. String() string // TargetEntity returns target entity. TargetEntity() string // SourceEntities returns source entities. SourceEntities() map[string][]string // Tentacles returns tentacles. Tentacles() []Tentacler // Copy duplicate a mapper. Copy() Mapper // Exec excute input returns output. Exec(map[string]tdtl.Node) (map[string]tdtl.Node, error) }
type TQLConfig ¶ added in v0.4.1
type TQLConfig struct { TargetEntity string SourceEntities []string Tentacles []TentacleConfig }
type TentacleConfig ¶ added in v0.4.1
------------------------.
type TentacleType ¶
type TentacleType = string
type Tentacler ¶
type Tentacler interface { // ID return id. ID() string // Type returns tentacle type. Type() TentacleType // TargetID returns target id. TargetID() string // Items returns watch keys(watchKey=entityId#propertyKey). Items() []WatchKey // Copy duplicate a mapper. Copy() Tentacler // Version return tentacle version. Version() int64 }
func MergeTentacles ¶
func NewTentacle ¶
func NewTentacle(tp TentacleType, targetID string, items []WatchKey, version int64) Tentacler
Click to show internal directories.
Click to hide internal directories.