local

package
v1.3.45 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NilValue = ValueImpl{}

Functions

func AppendSliceValue

func AppendSliceValue(sliceVal model.Value, val model.Value) (ret model.Value, err error)

func DecodeValue

func DecodeValue(tVal interface{}, tType model.Type, mCache model.Cache) (ret model.Value, err error)

func ElemDependValue

func ElemDependValue(vVal model.Value) (ret []model.Value, err error)

func EncodeValue

func EncodeValue(tVal model.Value, tType model.Type, mCache model.Cache) (ret interface{}, err error)

func GetCodec added in v1.3.28

func GetCodec() codec.Codec

func GetEntityModel

func GetEntityModel(entity interface{}) (ret model.Model, err error)

func GetEntityType

func GetEntityType(entity interface{}) (ret model.Type, err error)

func GetEntityValue

func GetEntityValue(entity interface{}) (ret model.Value, err error)

func GetModelFilter added in v1.3.4

func GetModelFilter(vModel model.Model) (ret model.Filter, err error)

func GetType

func GetType(vType reflect.Type) (ret model.Type, err error)

func GetValue added in v1.3.28

func GetValue(valueDeclare model.ValueDeclare) (ret model.Value)

func NewFilter added in v1.3.4

func NewFilter(valuePtr *ValueImpl) *filter

func SetModelValue

func SetModelValue(vModel model.Model, vVal model.Value) (ret model.Model, err error)

Types

type SpecImpl added in v1.3.28

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

func NewSpec added in v1.3.28

func NewSpec(tag reflect.StructTag) (ret *SpecImpl, err error)

NewSpec name[key][auto]

func (*SpecImpl) GetFieldName added in v1.3.28

func (s *SpecImpl) GetFieldName() string

GetFieldName Name

func (*SpecImpl) GetValueDeclare added in v1.3.28

func (s *SpecImpl) GetValueDeclare() model.ValueDeclare

func (*SpecImpl) IsPrimaryKey added in v1.3.28

func (s *SpecImpl) IsPrimaryKey() bool

type TypeImpl added in v1.3.28

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

func NewType added in v1.3.28

func NewType(val reflect.Type) (ret *TypeImpl, err error)

func (*TypeImpl) Elem added in v1.3.28

func (s *TypeImpl) Elem() model.Type

func (*TypeImpl) GetDescription added in v1.3.28

func (s *TypeImpl) GetDescription() string

func (*TypeImpl) GetName added in v1.3.28

func (s *TypeImpl) GetName() string

func (*TypeImpl) GetPkgKey added in v1.3.28

func (s *TypeImpl) GetPkgKey() string

func (*TypeImpl) GetPkgPath added in v1.3.28

func (s *TypeImpl) GetPkgPath() string

func (*TypeImpl) GetValue added in v1.3.28

func (s *TypeImpl) GetValue() (ret model.TypeDeclare)

func (*TypeImpl) Interface added in v1.3.28

func (s *TypeImpl) Interface(initVal any) (ret model.Value, err error)

func (*TypeImpl) IsBasic added in v1.3.28

func (s *TypeImpl) IsBasic() bool

func (*TypeImpl) IsPtrType added in v1.3.28

func (s *TypeImpl) IsPtrType() bool

func (*TypeImpl) IsSlice added in v1.3.44

func (s *TypeImpl) IsSlice() bool

func (*TypeImpl) IsStruct added in v1.3.44

func (s *TypeImpl) IsStruct() bool

type ValueImpl added in v1.3.28

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

func NewValue added in v1.3.28

func NewValue(val reflect.Value) (ret *ValueImpl)

func (*ValueImpl) Addr added in v1.3.28

func (s *ValueImpl) Addr() model.Value

func (*ValueImpl) Copy added in v1.3.28

func (s *ValueImpl) Copy() (ret *ValueImpl)

func (*ValueImpl) Get added in v1.3.28

func (s *ValueImpl) Get() any

func (*ValueImpl) Interface added in v1.3.28

func (s *ValueImpl) Interface() any

func (*ValueImpl) IsBasic added in v1.3.28

func (s *ValueImpl) IsBasic() bool

func (*ValueImpl) IsNil added in v1.3.28

func (s *ValueImpl) IsNil() (ret bool)

func (*ValueImpl) IsZero added in v1.3.28

func (s *ValueImpl) IsZero() (ret bool)

func (*ValueImpl) Set added in v1.3.28

func (s *ValueImpl) Set(val any)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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