Documentation ¶
Index ¶
- func GetStructName(mdStruct interface{}) string
- func HandleToType(name string, value interface{}, dataType data.Type) (interface{}, error)
- func IsZeroOfUnderlyingType(x interface{}) bool
- func MapToStruct(m map[string]interface{}, object interface{}, validate bool) error
- func ResolveSettingValue(setting string, value interface{}, settingsMd map[string]data.TypedValue, ...) (interface{}, error)
- func StructToMap(object interface{}) map[string]interface{}
- func StructToTypedMap(object interface{}) map[string]data.TypedValue
- func TypedMapToStruct(m map[string]data.TypedValue, object interface{}, validate bool) error
- type FieldDetails
- type IOMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStructName ¶
func GetStructName(mdStruct interface{}) string
func HandleToType ¶ added in v1.3.0
func IsZeroOfUnderlyingType ¶
func IsZeroOfUnderlyingType(x interface{}) bool
func MapToStruct ¶
func ResolveSettingValue ¶
func ResolveSettingValue(setting string, value interface{}, settingsMd map[string]data.TypedValue, ef expression.Factory) (interface{}, error)
func StructToMap ¶
func StructToMap(object interface{}) map[string]interface{}
func StructToTypedMap ¶
func StructToTypedMap(object interface{}) map[string]data.TypedValue
func TypedMapToStruct ¶
func TypedMapToStruct(m map[string]data.TypedValue, object interface{}, validate bool) error
Types ¶
type FieldDetails ¶
func NewFieldDetails ¶
func NewFieldDetails(name string, dType string, mdTag string) *FieldDetails
func (*FieldDetails) AllowedToString ¶
func (d *FieldDetails) AllowedToString() string
func (*FieldDetails) Validate ¶
func (d *FieldDetails) Validate(value interface{}) error
type IOMetadata ¶
type IOMetadata struct { Input map[string]data.TypedValue Output map[string]data.TypedValue }
func (*IOMetadata) MarshalJSON ¶
func (md *IOMetadata) MarshalJSON() ([]byte, error)
func (*IOMetadata) UnmarshalJSON ¶
func (md *IOMetadata) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.