Documentation
¶
Index ¶
Constants ¶
View Source
const ( CountKey = "count" ConsoleKey = "console" ButtonTestKey = "button_test" )
Variables ¶
View Source
var Resources embed.FS
Embed all translations in the resources directory
Functions ¶
func NewMyAwesomeExtension ¶
NewMyAwesomeExtension initializes a new instance of MyAwesomeExtension with default values
Types ¶
type MyAwesomeExtension ¶
type MyAwesomeExtension struct { ex.Base[MyAwesomeExtensionData] // Embedding base extension functionality // contains filtered or unexported fields }
MyAwesomeExtension represents the core functionality of the extension
func (*MyAwesomeExtension) BeforeAppConnect ¶
func (e *MyAwesomeExtension) BeforeAppConnect(hiddifySettings *config.HiddifyOptions, singconfig *option.Options) error
To Modify user's config before connecting, you can use this function
func (*MyAwesomeExtension) Close ¶
func (e *MyAwesomeExtension) Close() error
Stop is called when the extension is closed
func (*MyAwesomeExtension) GetUI ¶
func (e *MyAwesomeExtension) GetUI() ui.Form
GetUI returns the UI form for the extension
func (*MyAwesomeExtension) SubmitData ¶
func (e *MyAwesomeExtension) SubmitData(button string, data map[string]string) error
SubmitData processes and validates form submission data
type MyAwesomeExtensionData ¶
type MyAwesomeExtensionData struct {
Count int `json:"count"` // Number of counts for the extension
}
MyAwesomeExtensionData holds the data specific to MyAwesomeExtension
Click to show internal directories.
Click to hide internal directories.