Documentation
¶
Index ¶
- type Config
- type Plugin
- func (p *Plugin) CallableByJS() []string
- func (p *Plugin) Close() error
- func (p *Plugin) Execute(query string, args ...any) error
- func (p *Plugin) Init(app *application.App) error
- func (p *Plugin) InjectJS() string
- func (p *Plugin) Name() string
- func (p *Plugin) Open(dbPath string) (string, error)
- func (p *Plugin) Select(query string, args ...any) ([]map[string]any, error)
- func (p *Plugin) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) CallableByJS ¶
CallableByJS returns a list of exported methods that can be called from the frontend
func (*Plugin) Init ¶
func (p *Plugin) Init(app *application.App) error
Init is called when the app is starting up. You can use this to initialise any resources you need. You can also access the application instance via the app property.
func (*Plugin) Name ¶
Name returns the name of the plugin. You should use the go module format e.g. github.com/myuser/myplugin
Click to show internal directories.
Click to hide internal directories.