provider

package
v1.3.43 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

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

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

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

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

	GetEntityFilter(entity interface{}) (ret model.Filter, err error)

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

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

	GetTypeFilter(vType model.Type) (ret model.Filter, 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)

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

	Owner() string

	Reset()
}

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