factory

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionMeta

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

type ActionsFactory

type ActionsFactory interface {
	ParseAction(actions interface{}, path string) (types.Action, error)
	ParseActions(actions []interface{}, path string) ([]types.Action, error)
}

func CreateActionsFactory

func CreateActionsFactory(fnd app.Foundation, structParser StructParser, loc *location.Location) ActionsFactory

type Func

type Func func(data interface{}, fieldValue reflect.Value, path string) error

type FuncProvider

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

FuncProvider contains the implementation of the FactoryFunctions

func (*FuncProvider) GetFactoryFunc

func (f *FuncProvider) GetFactoryFunc(funcName string) (Func, error)

type Functions

type Functions interface {
	GetFactoryFunc(funcName string) (Func, error)
}

Functions define an interface for factory functions

func CreateFactories

func CreateFactories(fnd app.Foundation, structParser StructParser, pathKey string, loc *location.Location) Functions

type NativeActionsFactory

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

func (*NativeActionsFactory) ParseAction

func (f *NativeActionsFactory) ParseAction(action interface{}, path string) (types.Action, error)

func (*NativeActionsFactory) ParseActions

func (f *NativeActionsFactory) ParseActions(actions []interface{}, path string) ([]types.Action, error)

type StructParser

type StructParser func(data map[string]interface{}, structure interface{}, path string) error

Jump to

Keyboard shortcuts

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