Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(app *pocketbase.PocketBase, cfg Config)
Types ¶
type ComputedField ¶
type ComputedField struct {
FieldName string
FieldType FieldType
// Compute needs to return the field value
Compute func(e *core.RecordEnrichEvent) any
}
FieldType should be any of text, number, bool, json
type Config ¶
type Config struct {
CollectionComputedFields map[string][]ComputedField
}
func (*Config) ExtractFields ¶
func (c *Config) ExtractFields() map[string][]gentypes.AdditionalField
type Field ¶
func (Field) IsReadOnly ¶
Click to show internal directories.
Click to hide internal directories.