helper

package
v1.3.57 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeObject added in v1.3.28

func DecodeObject(data []byte) (ret *remote.Object, err error)

func EncodeObject added in v1.3.28

func EncodeObject(objPtr *remote.Object) (ret []byte, err error)

func GetObject added in v1.3.28

func GetObject(entity interface{}) (ret *remote.Object, err error)

GetObject get object

func GetObjectValue added in v1.3.28

func GetObjectValue(entity interface{}) (ret *remote.ObjectValue, err error)

GetObjectValue get object value

func GetSliceObjectValue added in v1.3.28

func GetSliceObjectValue(sliceEntity interface{}) (ret *remote.SliceObjectValue, err error)

GetSliceObjectValue get slice object value

func UpdateEntity added in v1.3.28

func UpdateEntity(remoteValue *remote.ObjectValue, localEntity any) (err error)

UpdateEntity update object value -> entity

func UpdateSliceEntity added in v1.3.28

func UpdateSliceEntity(remoteValue *remote.SliceObjectValue, localEntity any) (err error)

UpdateSliceEntity update slice object value -> entitySlice

Types

This section is empty.

Jump to

Keyboard shortcuts

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