hiddify_extension

package
v0.0.0-...-4e6716e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

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 NewFirstTestExtenstionHiddify

func NewFirstTestExtenstionHiddify() ex.Extension

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL