Documentation ¶
Index ¶
- func RegisterDataSourceExports(route *echo.Group, db database.Database)
- func RegisterDataSourceImports(route *echo.Group, db database.Database)
- func RegisterGeneratorExports(route *echo.Group, db database.Database)
- func RegisterGeneratorImports(route *echo.Group, db database.Database)
- func RegisterTemplateExports(route *echo.Group, db database.Database)
- func RegisterTemplateImports(route *echo.Group, db database.Database)
- type Argument
- type DataSourceExport
- type DataSourceExportFunc
- type DataSourceImport
- type DataSourceImportFunc
- type GeneratorExport
- type GeneratorExportFunction
- type GeneratorImport
- type GeneratorImportFunc
- type ImExport
- type TemplateExport
- type TemplateExportFunction
- type TemplateImport
- type TemplateImportFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDataSourceExports ¶
RegisterDataSourceExports registers all data source exports.
func RegisterDataSourceImports ¶
RegisterDataSourceImports registers all data source imports.
func RegisterGeneratorExports ¶
RegisterGeneratorExports registers all generator exports.
func RegisterGeneratorImports ¶
RegisterGeneratorImports registers all generator imports.
func RegisterTemplateExports ¶
RegisterTemplateExports registers all template exports.
func RegisterTemplateImports ¶
RegisterTemplateImports registers all template imports.
Types ¶
type Argument ¶
type Argument struct { Name string `json:"name"` Description string `json:"description"` Type string `json:"type"` Default any `json:"default"` }
Argument represents a function argument for import and export functions.
type DataSourceExport ¶
type DataSourceExport struct { ImExport Func DataSourceExportFunc `json:"-"` }
DataSourceExport is a data source export.
type DataSourceExportFunc ¶
type DataSourceExportFunc func(source snd.DataSource, entries []snd.Entry, args []any) (string, error)
DataSourceExportFunc is a function that exports a data source from a given set of arguments.
type DataSourceImport ¶
type DataSourceImport struct { ImExport Func DataSourceImportFunc `json:"-"` }
DataSourceImport is a data source import.
type DataSourceImportFunc ¶
DataSourceImportFunc is a function that imports a data source from a given set of arguments.
type GeneratorExport ¶
type GeneratorExport struct { ImExport Func GeneratorExportFunction `json:"-"` }
GeneratorExport is a generator export.
type GeneratorExportFunction ¶
GeneratorExportFunction is a function that exports a generator from a given set of arguments.
type GeneratorImport ¶
type GeneratorImport struct { ImExport Func GeneratorImportFunc `json:"-"` }
GeneratorImport is a generator import.
type GeneratorImportFunc ¶
GeneratorImportFunc is a function that imports a generator from a given set of arguments.
type ImExport ¶
type ImExport struct { Name string `json:"name"` RPCName string `json:"rpcName"` Description string `json:"description"` Arguments []Argument `json:"arguments"` }
ImExport represents a import or export function.
func NewImExport ¶
type TemplateExport ¶
type TemplateExport struct { ImExport Func TemplateExportFunction `json:"-"` }
TemplateExport is a template export.
type TemplateExportFunction ¶
type TemplateExportFunction func(template snd.Template, entries []snd.Entry, args []any) (string, error)
TemplateExportFunction is a function that exports a template from a given set of arguments.
type TemplateImport ¶
type TemplateImport struct { ImExport Func TemplateImportFunc `json:"-"` }
TemplateImport is a template import.