Documentation
¶
Index ¶
- func MapField(product, resource, field string, value any) (any, bool)
- func NormalizeBindingItem(product, resource, name string, value map[string]any, index int) (map[string]any, bool, error)
- func RegisterAfterOperationError(product, resource, name string, hook AfterOperationError)
- func RegisterBeforeOperation(product, resource, name string, hook BeforeOperation)
- func RegisterBindingItemNormalizer(product, resource, name string, normalizer BindingItemNormalizer)
- func RegisterFieldMapper(product, resource, field string, mapper FieldMapper)
- type AfterOperationError
- type BeforeOperation
- type BindingItemNormalizer
- type FieldMapper
- type OperationCaller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeBindingItem ¶
func RegisterAfterOperationError ¶
func RegisterAfterOperationError(product, resource, name string, hook AfterOperationError)
func RegisterBeforeOperation ¶
func RegisterBeforeOperation(product, resource, name string, hook BeforeOperation)
func RegisterBindingItemNormalizer ¶
func RegisterBindingItemNormalizer(product, resource, name string, normalizer BindingItemNormalizer)
func RegisterFieldMapper ¶
func RegisterFieldMapper(product, resource, field string, mapper FieldMapper)
Types ¶
type AfterOperationError ¶
type AfterOperationError func(ctx context.Context, caller OperationCaller, request map[string]any, err error) error
func AfterOperationErrorHook ¶
func AfterOperationErrorHook(product, resource, name string) (AfterOperationError, bool)
type BeforeOperation ¶
type BeforeOperation func(ctx context.Context, caller OperationCaller, request map[string]any) (map[string]any, error)
func BeforeOperationHook ¶
func BeforeOperationHook(product, resource, name string) (BeforeOperation, bool)
type BindingItemNormalizer ¶
type FieldMapper ¶
Click to show internal directories.
Click to hide internal directories.