local

package
v1.3.123 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 10 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 *cd.Result)

func DecodeValue

func DecodeValue(tVal interface{}, tType model.Type, _ model.Cache) (ret model.Value, err *cd.Result)

func ElemDependValue

func ElemDependValue(vVal model.Value) (ret []model.Value, err *cd.Result)

func EncodeValue

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

func GetEntityModel

func GetEntityModel(entity interface{}) (ret model.Model, err *cd.Result)

func GetEntityType

func GetEntityType(entity interface{}) (ret model.Type, err *cd.Result)

func GetEntityValue

func GetEntityValue(entity interface{}) (ret model.Value, err *cd.Result)

func GetModelFilter added in v1.3.4

func GetModelFilter(vModel model.Model) (ret model.Filter, err *cd.Result)

func GetType

func GetType(vType reflect.Type) (ret model.Type, err *cd.Result)

func GetValue added in v1.3.28

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

func SetModelValue

func SetModelValue(vModel model.Model, vVal model.Value) (ret model.Model, err *cd.Result)

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 *cd.Result)

NewSpec name[key][auto]

func (*SpecImpl) EnableView added in v1.3.90

func (s *SpecImpl) EnableView(viewSpec model.ViewDeclare) bool

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 *cd.Result)

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 *cd.Result)

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