Documentation ¶
Index ¶
- Constants
- Variables
- func NewFirstTestExtenstionHiddify() ex.Extension
- type FirstTestExtenstionHiddify
- func (e *FirstTestExtenstionHiddify) BeforeAppConnect(hiddifySettings *config.HiddifyOptions, singconfig *option.Options) error
- func (e *FirstTestExtenstionHiddify) Close() error
- func (e *FirstTestExtenstionHiddify) GetUI() ui.Form
- func (e *FirstTestExtenstionHiddify) SubmitData(button string, data map[string]string) error
- type FirstTestExtenstionHiddifyData
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 NewFirstTestExtenstionHiddify ¶
NewFirstTestExtenstionHiddify initializes a new instance of FirstTestExtenstionHiddify with default values
Types ¶
type FirstTestExtenstionHiddify ¶
type FirstTestExtenstionHiddify struct { ex.Base[FirstTestExtenstionHiddifyData] // Embedding base extension functionality // contains filtered or unexported fields }
FirstTestExtenstionHiddify represents the core functionality of the extension
func (*FirstTestExtenstionHiddify) BeforeAppConnect ¶
func (e *FirstTestExtenstionHiddify) BeforeAppConnect(hiddifySettings *config.HiddifyOptions, singconfig *option.Options) error
To Modify user's config before connecting, you can use this function
func (*FirstTestExtenstionHiddify) Close ¶
func (e *FirstTestExtenstionHiddify) Close() error
Stop is called when the extension is closed
func (*FirstTestExtenstionHiddify) GetUI ¶
func (e *FirstTestExtenstionHiddify) GetUI() ui.Form
GetUI returns the UI form for the extension
func (*FirstTestExtenstionHiddify) SubmitData ¶
func (e *FirstTestExtenstionHiddify) SubmitData(button string, data map[string]string) error
SubmitData processes and validates form submission data
type FirstTestExtenstionHiddifyData ¶
type FirstTestExtenstionHiddifyData struct {
Count int `json:"count"` // Number of counts for the extension
}
FirstTestExtenstionHiddifyData holds the data specific to FirstTestExtenstionHiddify
Click to show internal directories.
Click to hide internal directories.