hiddify_extension

package
v0.0.0-...-2c481b3 Latest Latest
Warning

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

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

Documentation

Index

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

func NewHiddifyHiddifyAppDemoExtension() ex.Extension

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

Cancel stops the ongoing background task if it exists

func (*HiddifyHiddifyAppDemoExtension) GetUI

GetUI returns the UI form for the extension

func (*HiddifyHiddifyAppDemoExtension) Stop

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

Jump to

Keyboard shortcuts

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