binding

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEntity

func NewEntity(store data.Store, entityId string) data.EntityBinding

func NewField

func NewField(store data.Store, entityId, fieldName string) data.FieldBinding

func NewMulti added in v0.0.9

func NewMulti(store data.Store) data.MultiBinding

Types

type Entity

type Entity struct {
	// contains filtered or unexported fields
}

func (*Entity) AppendChildId

func (e *Entity) AppendChildId(id string)

func (*Entity) GetChildrenIds

func (e *Entity) GetChildrenIds() []string

func (*Entity) GetField

func (e *Entity) GetField(fieldName string) data.FieldBinding

func (*Entity) GetId

func (e *Entity) GetId() string

func (*Entity) GetName

func (e *Entity) GetName() string

func (*Entity) GetParentId

func (e *Entity) GetParentId() string

func (*Entity) GetType

func (e *Entity) GetType() string

func (*Entity) RemoveChildId

func (e *Entity) RemoveChildId(id string)

func (*Entity) SetChildrenIds

func (e *Entity) SetChildrenIds(ids []string)

func (*Entity) SetId

func (e *Entity) SetId(id string)

func (*Entity) SetName

func (e *Entity) SetName(n string)

func (*Entity) SetParentId

func (e *Entity) SetParentId(p string)

func (*Entity) SetType

func (e *Entity) SetType(t string)

type Field

type Field struct {
	// contains filtered or unexported fields
}

func (*Field) GetBinaryFile

func (b *Field) GetBinaryFile() string

func (*Field) GetBool

func (b *Field) GetBool() bool

func (*Field) GetEntityId

func (b *Field) GetEntityId() string

func (*Field) GetEntityReference

func (b *Field) GetEntityReference() string

func (*Field) GetFieldName

func (b *Field) GetFieldName() string

func (*Field) GetFloat

func (b *Field) GetFloat() float64

func (*Field) GetInt

func (b *Field) GetInt() int64

func (*Field) GetString

func (b *Field) GetString() string

func (*Field) GetTimestamp

func (b *Field) GetTimestamp() time.Time

func (*Field) GetTransformation

func (b *Field) GetTransformation() string

func (*Field) GetValue

func (b *Field) GetValue() data.Value

func (*Field) GetWriteTime

func (b *Field) GetWriteTime() time.Time

func (*Field) GetWriter

func (b *Field) GetWriter() string

func (*Field) IsBinaryFile

func (b *Field) IsBinaryFile() bool

func (*Field) IsBool

func (b *Field) IsBool() bool

func (*Field) IsEntityReference

func (b *Field) IsEntityReference() bool

func (*Field) IsFloat

func (b *Field) IsFloat() bool

func (*Field) IsInt

func (b *Field) IsInt() bool

func (*Field) IsString

func (b *Field) IsString() bool

func (*Field) IsTimestamp

func (b *Field) IsTimestamp() bool

func (*Field) IsTransformation

func (b *Field) IsTransformation() bool

func (*Field) ReadBinaryFile

func (b *Field) ReadBinaryFile() string

func (*Field) ReadBool

func (b *Field) ReadBool() bool

func (*Field) ReadEntityReference

func (b *Field) ReadEntityReference() string

func (*Field) ReadFloat

func (b *Field) ReadFloat() float64

func (*Field) ReadInt

func (b *Field) ReadInt() int64

func (*Field) ReadString

func (b *Field) ReadString() string

func (*Field) ReadTimestamp

func (b *Field) ReadTimestamp() time.Time

func (*Field) ReadTransformation

func (b *Field) ReadTransformation() string

func (*Field) ReadValue

func (b *Field) ReadValue() data.Value

func (*Field) WriteBinaryFile

func (b *Field) WriteBinaryFile(args ...interface{}) data.FieldBinding

func (*Field) WriteBool

func (b *Field) WriteBool(args ...interface{}) data.FieldBinding

func (*Field) WriteEntityReference

func (b *Field) WriteEntityReference(args ...interface{}) data.FieldBinding

func (*Field) WriteFloat

func (b *Field) WriteFloat(args ...interface{}) data.FieldBinding

func (*Field) WriteInt

func (b *Field) WriteInt(args ...interface{}) data.FieldBinding

func (*Field) WriteString

func (b *Field) WriteString(args ...interface{}) data.FieldBinding

func (*Field) WriteTimestamp

func (b *Field) WriteTimestamp(args ...interface{}) data.FieldBinding

func (*Field) WriteTransformation

func (b *Field) WriteTransformation(args ...interface{}) data.FieldBinding

func (*Field) WriteValue

func (b *Field) WriteValue(v data.Value) data.FieldBinding

type MultiBinding added in v0.0.9

type MultiBinding struct {
	// contains filtered or unexported fields
}

func (*MultiBinding) Commit added in v0.0.9

func (m *MultiBinding) Commit()

func (*MultiBinding) Connect added in v0.0.9

func (m *MultiBinding) Connect()

Implement Store interface by proxying to impl

func (*MultiBinding) CreateEntity added in v0.0.9

func (m *MultiBinding) CreateEntity(entityType, parentId, name string)

func (*MultiBinding) CreateSnapshot added in v0.0.9

func (m *MultiBinding) CreateSnapshot() data.Snapshot

func (*MultiBinding) DeleteEntity added in v0.0.9

func (m *MultiBinding) DeleteEntity(entityId string)

func (*MultiBinding) Disconnect added in v0.0.9

func (m *MultiBinding) Disconnect()

func (*MultiBinding) EntityExists added in v0.0.9

func (m *MultiBinding) EntityExists(entityId string) bool

func (*MultiBinding) FieldExists added in v0.0.9

func (m *MultiBinding) FieldExists(fieldName, entityType string) bool

func (*MultiBinding) FindEntities added in v0.0.9

func (m *MultiBinding) FindEntities(entityType string) []string

func (*MultiBinding) GetEntity added in v0.0.9

func (m *MultiBinding) GetEntity(entityId string) data.Entity

func (*MultiBinding) GetEntityById added in v0.0.9

func (m *MultiBinding) GetEntityById(entityId string) data.EntityBinding

MultiBinding specific methods

func (*MultiBinding) GetEntitySchema added in v0.0.9

func (m *MultiBinding) GetEntitySchema(entityType string) data.EntitySchema

func (*MultiBinding) GetEntityTypes added in v0.0.9

func (m *MultiBinding) GetEntityTypes() []string

func (*MultiBinding) IsConnected added in v0.0.9

func (m *MultiBinding) IsConnected() bool

func (*MultiBinding) Notify added in v0.0.9

func (*MultiBinding) ProcessNotifications added in v0.0.9

func (m *MultiBinding) ProcessNotifications()

func (*MultiBinding) Read added in v0.0.9

func (m *MultiBinding) Read(reqs ...data.Request)

Queue reads and writes instead of executing immediately

func (*MultiBinding) RestoreSnapshot added in v0.0.9

func (m *MultiBinding) RestoreSnapshot(s data.Snapshot)

func (*MultiBinding) SetEntity added in v0.0.9

func (m *MultiBinding) SetEntity(value data.Entity)

func (*MultiBinding) SetEntitySchema added in v0.0.9

func (m *MultiBinding) SetEntitySchema(schema data.EntitySchema)

func (*MultiBinding) SortedSetAdd added in v0.0.9

func (m *MultiBinding) SortedSetAdd(key string, member string, score float64) int64

func (*MultiBinding) SortedSetRangeByScoreWithScores added in v0.0.9

func (m *MultiBinding) SortedSetRangeByScoreWithScores(key string, min, max string) []data.SortedSetMember

func (*MultiBinding) SortedSetRemove added in v0.0.9

func (m *MultiBinding) SortedSetRemove(key string, member string) int64

func (*MultiBinding) SortedSetRemoveRangeByRank added in v0.0.9

func (m *MultiBinding) SortedSetRemoveRangeByRank(key string, start, stop int64) int64

func (*MultiBinding) TempDel added in v0.0.9

func (m *MultiBinding) TempDel(key string)

func (*MultiBinding) TempExpire added in v0.0.9

func (m *MultiBinding) TempExpire(key string, expiration time.Duration)

func (*MultiBinding) TempGet added in v0.0.9

func (m *MultiBinding) TempGet(key string) string

func (*MultiBinding) TempSet added in v0.0.9

func (m *MultiBinding) TempSet(key string, value string, expiration time.Duration) bool

func (*MultiBinding) Unnotify added in v0.0.9

func (m *MultiBinding) Unnotify(subscriptionId string)

func (*MultiBinding) UnnotifyCallback added in v0.0.9

func (m *MultiBinding) UnnotifyCallback(subscriptionId string, callback data.NotificationCallback)

func (*MultiBinding) Write added in v0.0.9

func (m *MultiBinding) Write(reqs ...data.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL