Versions in this module Expand all Collapse all v1 v1.0.1 Jan 18, 2024 v1.0.0 Jan 10, 2024 Changes in this version + func GetSchema(value TypedValue) (schema.Schema, bool) + func IsSimpleType(val interface{}) bool + func SetAttributeTypeConverter(converter TypeConverter) + type Attribute struct + func NewAttribute(name string, dataType Type, value interface{}) *Attribute + func NewAttributeWithSchema(name string, dataType Type, value interface{}, schema schema.Schema) *Attribute + func (a *Attribute) MarshalJSON() ([]byte, error) + func (a *Attribute) Name() string + func (a *Attribute) Schema() schema.Schema + func (a *Attribute) Type() Type + func (a *Attribute) UnmarshalJSON(data []byte) error + func (a *Attribute) Value() interface{} + type NeedsDelete interface + Delete func(name string) + type Scope interface + GetValue func(name string) (value interface{}, exists bool) + SetValue func(name string, value interface{}) error + func NewSimpleScope(values map[string]interface{}, parentScope Scope) Scope + func NewSimpleSyncScope(values map[string]interface{}, parentScope Scope) Scope + type SimpleScope struct + func (s *SimpleScope) Delete(name string) + func (s *SimpleScope) GetValue(name string) (value interface{}, exists bool) + func (s *SimpleScope) SetValue(name string, value interface{}) error + type SimpleSyncScope struct + func (s *SimpleSyncScope) Delete(name string) + func (s *SimpleSyncScope) GetValue(name string) (value interface{}, exists bool) + func (s *SimpleSyncScope) SetValue(name string, value interface{}) error + type StringsMap interface + Get func(key string) string + Iterate func(itx func(key string, value string)) + func NewFixedStringsMap(params map[string]string) StringsMap + type StructValue interface + FromMap func(values map[string]interface{}) error + ToMap func() map[string]interface{} + type Type int + const TypeAny + const TypeArray + const TypeBool + const TypeBytes + const TypeConnection + const TypeDateTime + const TypeFloat32 + const TypeFloat64 + const TypeInt + const TypeInt32 + const TypeInt64 + const TypeMap + const TypeObject + const TypeParams + const TypeString + const TypeUnknown + func GetType(val interface{}) (Type, error) + func ToTypeEnum(typeStr string) (Type, error) + func ToTypeFromGoRep(strType string) Type + func (t Type) IsSimple() bool + func (t Type) Name() string + func (t Type) String() string + type TypeConverter func(value interface{}, toType Type) (interface{}, error) + type TypedValue interface + Type func() Type + Value func() interface{} + func NewTypedValue(dataType Type, value interface{}) TypedValue + func NewTypedValueFromAttr(attr *Attribute) TypedValue + func NewTypedValueWithConversion(dataType Type, value interface{}) (TypedValue, error) + func ToTypedValue(value interface{}) TypedValue