objectz

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelIterator

type ChannelIterator[T any] struct {
	// contains filtered or unexported fields
}

func (*ChannelIterator[T]) Current

func (self *ChannelIterator[T]) Current() T

func (*ChannelIterator[T]) IsValid

func (self *ChannelIterator[T]) IsValid() bool

func (*ChannelIterator[T]) Next

func (self *ChannelIterator[T]) Next()

type ObjectBoolSymbol

type ObjectBoolSymbol[T any] struct {
	// contains filtered or unexported fields
}

ObjectBoolSymbol can evaluate boolean symbols on a given entity type

func (*ObjectBoolSymbol[T]) Eval

func (self *ObjectBoolSymbol[T]) Eval(entity T) any

func (*ObjectBoolSymbol[T]) EvalBool

func (self *ObjectBoolSymbol[T]) EvalBool(entity T) *bool

func (*ObjectBoolSymbol[T]) GetType

func (self *ObjectBoolSymbol[T]) GetType() ast.NodeType

type ObjectCursor

type ObjectCursor[T any] struct {
	// contains filtered or unexported fields
}

func (*ObjectCursor[T]) EvalBool

func (self *ObjectCursor[T]) EvalBool(name string) *bool

func (*ObjectCursor[T]) EvalDatetime

func (self *ObjectCursor[T]) EvalDatetime(name string) *time.Time

func (*ObjectCursor[T]) EvalFloat64

func (self *ObjectCursor[T]) EvalFloat64(name string) *float64

func (*ObjectCursor[T]) EvalInt64

func (self *ObjectCursor[T]) EvalInt64(name string) *int64

func (*ObjectCursor[T]) EvalString

func (self *ObjectCursor[T]) EvalString(name string) *string

func (*ObjectCursor[T]) GetSetSymbolTypes

func (self *ObjectCursor[T]) GetSetSymbolTypes(name string) ast.SymbolTypes

func (*ObjectCursor[T]) GetSymbolType

func (self *ObjectCursor[T]) GetSymbolType(name string) (ast.NodeType, bool)

func (*ObjectCursor[T]) IsNil

func (self *ObjectCursor[T]) IsNil(name string) bool

func (*ObjectCursor[T]) IsSet

func (self *ObjectCursor[T]) IsSet(name string) (bool, bool)

func (*ObjectCursor[T]) OpenSetCursor

func (self *ObjectCursor[T]) OpenSetCursor(name string) ast.SetCursor

func (*ObjectCursor[T]) OpenSetCursorForQuery

func (self *ObjectCursor[T]) OpenSetCursorForQuery(name string, query ast.Query) ast.SetCursor

type ObjectDatetimeSymbol

type ObjectDatetimeSymbol[T any] struct {
	// contains filtered or unexported fields
}

ObjectDatetimeSymbol can evaluate date-time symbols on a given entity type

func (*ObjectDatetimeSymbol[T]) Eval

func (self *ObjectDatetimeSymbol[T]) Eval(entity T) any

func (*ObjectDatetimeSymbol[T]) EvalDatetime

func (self *ObjectDatetimeSymbol[T]) EvalDatetime(entity T) *time.Time

func (*ObjectDatetimeSymbol[T]) GetType

func (self *ObjectDatetimeSymbol[T]) GetType() ast.NodeType

type ObjectFloat64Symbol

type ObjectFloat64Symbol[T any] struct {
	// contains filtered or unexported fields
}

ObjectFloat64Symbol can evaluate float64 symbols on a given entity type

func (*ObjectFloat64Symbol[T]) Eval

func (self *ObjectFloat64Symbol[T]) Eval(entity T) any

func (*ObjectFloat64Symbol[T]) EvalFloat64

func (self *ObjectFloat64Symbol[T]) EvalFloat64(entity T) *float64

func (*ObjectFloat64Symbol[T]) GetType

func (self *ObjectFloat64Symbol[T]) GetType() ast.NodeType

type ObjectInt64Symbol

type ObjectInt64Symbol[T any] struct {
	// contains filtered or unexported fields
}

ObjectInt64Symbol can evaluate int64 symbols on a given entity type

func (*ObjectInt64Symbol[T]) Eval

func (self *ObjectInt64Symbol[T]) Eval(entity T) any

func (*ObjectInt64Symbol[T]) EvalInt64

func (self *ObjectInt64Symbol[T]) EvalInt64(entity T) *int64

func (*ObjectInt64Symbol[T]) GetType

func (self *ObjectInt64Symbol[T]) GetType() ast.NodeType

type ObjectIterator

type ObjectIterator[T any] interface {
	IsValid() bool
	Next()
	Current() T
}

func IterateMap

func IterateMap[T any](m map[string]T) ObjectIterator[T]

type ObjectStore

type ObjectStore[T any] struct {
	// contains filtered or unexported fields
}

func NewObjectStore

func NewObjectStore[T any](iteratorF func() ObjectIterator[T]) *ObjectStore[T]

func (*ObjectStore[T]) AddBoolSymbol

func (self *ObjectStore[T]) AddBoolSymbol(name string, f func(entity T) *bool)

func (*ObjectStore[T]) AddDatetimeSymbol

func (self *ObjectStore[T]) AddDatetimeSymbol(name string, f func(entity T) *time.Time)

func (*ObjectStore[T]) AddFloat64Symbol

func (self *ObjectStore[T]) AddFloat64Symbol(name string, f func(entity T) *float64)

func (*ObjectStore[T]) AddInt64Symbol

func (self *ObjectStore[T]) AddInt64Symbol(name string, f func(entity T) *int64)

func (*ObjectStore[T]) AddStringSymbol

func (self *ObjectStore[T]) AddStringSymbol(name string, f func(entity T) *string)

func (*ObjectStore[T]) GetSetSymbolTypes

func (self *ObjectStore[T]) GetSetSymbolTypes(name string) ast.SymbolTypes

func (*ObjectStore[T]) GetSymbol

func (self *ObjectStore[T]) GetSymbol(name string) ObjectSymbol[T]

func (*ObjectStore[T]) GetSymbolType

func (self *ObjectStore[T]) GetSymbolType(name string) (ast.NodeType, bool)

func (*ObjectStore[T]) IsSet

func (self *ObjectStore[T]) IsSet(name string) (bool, bool)

func (*ObjectStore[T]) QueryEntities

func (self *ObjectStore[T]) QueryEntities(queryString string) ([]T, int64, error)

func (*ObjectStore[T]) QueryEntitiesC

func (self *ObjectStore[T]) QueryEntitiesC(query ast.Query) ([]T, int64, error)

type ObjectStringSymbol

type ObjectStringSymbol[T any] struct {
	// contains filtered or unexported fields
}

ObjectStringSymbol can evaluate string symbols on a given entity type

func (*ObjectStringSymbol[T]) Eval

func (self *ObjectStringSymbol[T]) Eval(entity T) any

func (*ObjectStringSymbol[T]) EvalString

func (self *ObjectStringSymbol[T]) EvalString(entity T) *string

func (*ObjectStringSymbol[T]) GetType

func (self *ObjectStringSymbol[T]) GetType() ast.NodeType

type ObjectSymbol

type ObjectSymbol[T any] interface {
	GetType() ast.NodeType
	Eval(entity T) any
}

Jump to

Keyboard shortcuts

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