Documentation ¶
Index ¶
- type Config
- type Plugin
- func (p *Plugin) CallableByJS() []string
- func (p *Plugin) Debug(message string, args ...any)
- func (p *Plugin) Error(message string, args ...any)
- func (p *Plugin) Info(message string, args ...any)
- func (p *Plugin) Init() error
- func (p *Plugin) InjectJS() string
- func (p *Plugin) Name() string
- func (p *Plugin) SetLogLevel(level slog.Level)
- func (p *Plugin) Shutdown()
- func (p *Plugin) Warning(message string, args ...any)
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 NewPluginWithConfig ¶
func (*Plugin) CallableByJS ¶
CallableByJS returns a list of methods that can be called from the frontend
func (*Plugin) Name ¶
Name returns the name of the plugin. You should use the go module format e.g. github.com/myuser/myplugin
func (*Plugin) SetLogLevel ¶
Click to show internal directories.
Click to hide internal directories.