provider

package
Version: v0.0.0-...-7cf166a Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateEntity

func UpdateEntity(objectValue *remote.ObjectValue, entity interface{}) (err error)

UpdateEntity update object value -> entity

func UpdateSliceEntity

func UpdateSliceEntity(sliceObjectValue *remote.SliceObjectValue, entitySlice interface{}) (err error)

UpdateSliceEntity update slice object value -> entitySlice

Types

type Provider

type Provider interface {
	RegisterModel(entity interface{}) (ret model.Model, err error)

	UnregisterModel(entity interface{})

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

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

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

	GetValueModel(vVal model.Value, vType model.Type) (ret model.Model, err error)

	GetTypeModel(vType model.Type) (ret model.Model, err error)

	EncodeValue(vVal model.Value, vType model.Type) (ret interface{}, err error)

	DecodeValue(vVal interface{}, vType model.Type) (ret model.Value, err error)

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

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

	IsAssigned(vVal model.Value, vType model.Type) bool

	Owner() string

	Reset()
}

Provider model provider

func NewLocalProvider

func NewLocalProvider(owner string) Provider

NewLocalProvider model provider

func NewRemoteProvider

func NewRemoteProvider(owner string) Provider

NewRemoteProvider model provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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