element

package
v0.0.0-...-36f034f Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoMatrix no matrix
	ErrNoMatrix = errors.New("no ErrNoMatrix like this")
)

Functions

This section is empty.

Types

type Component

type Component struct {
	// contains filtered or unexported fields
}

Component Component

func NewComponent

func NewComponent() *Component

NewComponent NewComponent

func (*Component) GetMold

func (c *Component) GetMold(tag, fieldName string, schema *basal.ConvertSchema, orgAPI client.OrgAPI, orgMap map[string]string) (Matrix, error)

GetMold mold a component

type Matrix

type Matrix interface {
	GetTag() string
	SetValue(fieldKey string, schema *basal.ConvertSchema, orgAPI client.OrgAPI, orgMap map[string]string)
	GetValueByString(ctx context.Context, value string) (interface{}, code.ErrorType)
	ExportValue(ctx context.Context, value interface{}) string
}

Matrix Matrix

Jump to

Keyboard shortcuts

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