Documentation ¶
Index ¶
- Constants
- Variables
- func NewHiddifyHiddifyAppDemoExtension() ex.Extension
- type HiddifyHiddifyAppDemoExtension
- func (e *HiddifyHiddifyAppDemoExtension) BeforeAppConnect(hiddifySettings *config.HiddifyOptions, singconfig *option.Options) error
- func (e *HiddifyHiddifyAppDemoExtension) Cancel() error
- func (e *HiddifyHiddifyAppDemoExtension) GetUI() ui.Form
- func (e *HiddifyHiddifyAppDemoExtension) Stop() error
- func (e *HiddifyHiddifyAppDemoExtension) SubmitData(data map[string]string) error
- type HiddifyHiddifyAppDemoExtensionData
Constants ¶
View Source
const (
CountKey = "count"
)
Field name constants for easy reference, use similar name to the json key
Variables ¶
View Source
var Resources embed.FS
Embed all translations in the resources directory
Functions ¶
func NewHiddifyHiddifyAppDemoExtension ¶
NewHiddifyHiddifyAppDemoExtension initializes a new instance of HiddifyHiddifyAppDemoExtension with default values
Types ¶
type HiddifyHiddifyAppDemoExtension ¶
type HiddifyHiddifyAppDemoExtension struct { ex.Base[HiddifyHiddifyAppDemoExtensionData] // Embedding base extension functionality // contains filtered or unexported fields }
HiddifyHiddifyAppDemoExtension represents the core functionality of the extension
func (*HiddifyHiddifyAppDemoExtension) BeforeAppConnect ¶
func (e *HiddifyHiddifyAppDemoExtension) BeforeAppConnect(hiddifySettings *config.HiddifyOptions, singconfig *option.Options) error
To Modify user's config before connecting, you can use this function
func (*HiddifyHiddifyAppDemoExtension) Cancel ¶
func (e *HiddifyHiddifyAppDemoExtension) Cancel() error
Cancel stops the ongoing background task if it exists
func (*HiddifyHiddifyAppDemoExtension) GetUI ¶
func (e *HiddifyHiddifyAppDemoExtension) GetUI() ui.Form
GetUI returns the UI form for the extension
func (*HiddifyHiddifyAppDemoExtension) Stop ¶
func (e *HiddifyHiddifyAppDemoExtension) Stop() error
Stop is called when the extension is closed
func (*HiddifyHiddifyAppDemoExtension) SubmitData ¶
func (e *HiddifyHiddifyAppDemoExtension) SubmitData(data map[string]string) error
SubmitData processes and validates form submission data
type HiddifyHiddifyAppDemoExtensionData ¶
type HiddifyHiddifyAppDemoExtensionData struct {
Count int `json:"count"` // Number of counts for the extension
}
HiddifyHiddifyAppDemoExtensionData holds the data specific to HiddifyHiddifyAppDemoExtension
Click to show internal directories.
Click to hide internal directories.