Versions in this module Expand all Collapse all v0 v0.1.0 Feb 5, 2019 Changes in this version + const IntNegOne + const IntOne + const IntZero + var BoolType = NewTypeValue("bool", traits.ComparerType, traits.NegatorType) + var BytesType = NewTypeValue("bytes", traits.AdderType, traits.ComparerType, traits.SizerType) + var DoubleType = NewTypeValue("double", traits.AdderType, traits.ComparerType, traits.DividerType, ...) + var DurationType = NewTypeValue("google.protobuf.Duration", traits.AdderType, traits.ComparerType, ...) + var DynType = NewTypeValue("dyn") + var ErrType = NewTypeValue("error") + var False = Bool(false) + var IntType = NewTypeValue("int", traits.AdderType, traits.ComparerType, traits.DividerType, ...) + var IteratorType = NewTypeValue("iterator", traits.IteratorType) + var ListType = NewTypeValue("list", traits.AdderType, traits.ContainerType, traits.IndexerType, ...) + var MapType = NewTypeValue("map", traits.ContainerType, traits.IndexerType, traits.IterableType, ...) + var NullType = NewTypeValue("null_type") + var NullValue = Null(structpb.NullValue_NULL_VALUE) + var StringType = NewTypeValue("string", traits.AdderType, traits.ComparerType, traits.MatcherType, ...) + var TimestampType = NewTypeValue("google.protobuf.Timestamp", traits.AdderType, traits.ComparerType, ...) + var True = Bool(true) + var TypeType = NewTypeValue("type") + var UintType = NewTypeValue("uint", traits.AdderType, traits.ComparerType, traits.DividerType, ...) + var UnknownType = NewTypeValue("unknown") + func IsBool(elem interface{}) bool + func IsDyn(elem interface{}) bool + func IsError(val ref.Val) bool + func IsUnknown(val ref.Val) bool + func IsUnknownOrError(val ref.Val) bool + func NativeToValue(value interface{}) ref.Val + func NewDynamicList(value interface{}) traits.Lister + func NewDynamicMap(value interface{}) traits.Mapper + func NewErr(format string, args ...interface{}) ref.Val + func NewJSONList(l *structpb.ListValue) traits.Lister + func NewJSONStruct(st *structpb.Struct) traits.Mapper + func NewObject(value proto.Message) ref.Val + func NewProvider(types ...proto.Message) ref.TypeProvider + func NewStringList(elems []string) traits.Lister + func NewStringStringMap(value map[string]string) traits.Mapper + func NewValueList(elems []ref.Val) traits.Lister + func ValOrErr(val ref.Val, format string, args ...interface{}) ref.Val + type Bool bool + func (b Bool) Compare(other ref.Val) ref.Val + func (b Bool) ConvertToNative(typeDesc reflect.Type) (interface{}, error) + func (b Bool) ConvertToType(typeVal ref.Type) ref.Val + func (b Bool) Equal(other ref.Val) ref.Val + func (b Bool) Negate() ref.Val + func (b Bool) Type() ref.Type + func (b Bool) Value() interface{} + type Bytes []byte + func (b Bytes) Add(other ref.Val) ref.Val + func (b Bytes) Compare(other ref.Val) ref.Val + func (b Bytes) ConvertToNative(typeDesc reflect.Type) (interface{}, error) + func (b Bytes) ConvertToType(typeVal ref.Type) ref.Val + func (b Bytes) Equal(other ref.Val) ref.Val + func (b Bytes) Size() ref.Val + func (b Bytes) Type() ref.Type + func (b Bytes) Value() interface{} + type Double float64 + func (d Double) Add(other ref.Val) ref.Val + func (d Double) Compare(other ref.Val) ref.Val + func (d Double) ConvertToNative(typeDesc reflect.Type) (interface{}, error) + func (d Double) ConvertToType(typeVal ref.Type) ref.Val + func (d Double) Divide(other ref.Val) ref.Val + func (d Double) Equal(other ref.Val) ref.Val + func (d Double) Multiply(other ref.Val) ref.Val + func (d Double) Negate() ref.Val + func (d Double) Subtract(subtrahend ref.Val) ref.Val + func (d Double) Type() ref.Type + func (d Double) Value() interface{} + type Duration struct + func (d Duration) Add(other ref.Val) ref.Val + func (d Duration) Compare(other ref.Val) ref.Val + func (d Duration) ConvertToNative(typeDesc reflect.Type) (interface{}, error) + func (d Duration) ConvertToType(typeVal ref.Type) ref.Val + func (d Duration) Equal(other ref.Val) ref.Val + func (d Duration) Negate() ref.Val + func (d Duration) Receive(function string, overload string, args []ref.Val) ref.Val + func (d Duration) Subtract(subtrahend ref.Val) ref.Val + func (d Duration) Type() ref.Type + func (d Duration) Value() interface{} + type Err struct + func (e *Err) ConvertToNative(typeDesc reflect.Type) (interface{}, error) + func (e *Err) ConvertToType(typeVal ref.Type) ref.Val + func (e *Err) Equal(other ref.Val) ref.Val + func (e *Err) String() string + func (e *Err) Type() ref.Type + func (e *Err) Value() interface{} + type Int int64 + func (i Int) Add(other ref.Val) ref.Val + func (i Int) Compare(other ref.Val) ref.Val + func (i Int) ConvertToNative(typeDesc reflect.Type) (interface{}, error) + func (i Int) ConvertToType(typeVal ref.Type) ref.Val + func (i Int) Divide(other ref.Val) ref.Val + func (i Int) Equal(other ref.Val) ref.Val + func (i Int) Modulo(other ref.Val) ref.Val + func (i Int) Multiply(other ref.Val) ref.Val + func (i Int) Negate() ref.Val + func (i Int) Subtract(subtrahend ref.Val) ref.Val + func (i Int) Type() ref.Type + func (i Int) Value() interface{} + type Null structpb.NullValue + func (n Null) ConvertToNative(typeDesc reflect.Type) (interface{}, error) + func (n Null) ConvertToType(typeVal ref.Type) ref.Val + func (n Null) Equal(other ref.Val) ref.Val + func (n Null) Type() ref.Type + func (n Null) Value() interface{} + type String string + func (s String) Add(other ref.Val) ref.Val + func (s String) Compare(other ref.Val) ref.Val + func (s String) ConvertToNative(typeDesc reflect.Type) (interface{}, error) + func (s String) ConvertToType(typeVal ref.Type) ref.Val + func (s String) Equal(other ref.Val) ref.Val + func (s String) Match(pattern ref.Val) ref.Val + func (s String) Receive(function string, overload string, args []ref.Val) ref.Val + func (s String) Size() ref.Val + func (s String) Type() ref.Type + func (s String) Value() interface{} + type Timestamp struct + func (t Timestamp) Add(other ref.Val) ref.Val + func (t Timestamp) Compare(other ref.Val) ref.Val + func (t Timestamp) ConvertToNative(typeDesc reflect.Type) (interface{}, error) + func (t Timestamp) ConvertToType(typeVal ref.Type) ref.Val + func (t Timestamp) Equal(other ref.Val) ref.Val + func (t Timestamp) Receive(function string, overload string, args []ref.Val) ref.Val + func (t Timestamp) Subtract(subtrahend ref.Val) ref.Val + func (t Timestamp) Type() ref.Type + func (t Timestamp) Value() interface{} + type TypeValue struct + func NewObjectTypeValue(name string) *TypeValue + func NewTypeValue(name string, traits ...int) *TypeValue + func (t *TypeValue) ConvertToNative(typeDesc reflect.Type) (interface{}, error) + func (t *TypeValue) ConvertToType(typeVal ref.Type) ref.Val + func (t *TypeValue) Equal(other ref.Val) ref.Val + func (t *TypeValue) HasTrait(trait int) bool + func (t *TypeValue) String() string + func (t *TypeValue) Type() ref.Type + func (t *TypeValue) TypeName() string + func (t *TypeValue) Value() interface{} + type Uint uint64 + func (i Uint) Add(other ref.Val) ref.Val + func (i Uint) Compare(other ref.Val) ref.Val + func (i Uint) ConvertToNative(typeDesc reflect.Type) (interface{}, error) + func (i Uint) ConvertToType(typeVal ref.Type) ref.Val + func (i Uint) Divide(other ref.Val) ref.Val + func (i Uint) Equal(other ref.Val) ref.Val + func (i Uint) Modulo(other ref.Val) ref.Val + func (i Uint) Multiply(other ref.Val) ref.Val + func (i Uint) Subtract(subtrahend ref.Val) ref.Val + func (i Uint) Type() ref.Type + func (i Uint) Value() interface{} + type Unknown []int64 + func (u Unknown) ConvertToNative(typeDesc reflect.Type) (interface{}, error) + func (u Unknown) ConvertToType(typeVal ref.Type) ref.Val + func (u Unknown) Equal(other ref.Val) ref.Val + func (u Unknown) Type() ref.Type + func (u Unknown) Value() interface{}