hiddify_extension

package
v0.0.0-...-30fc540 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resources embed.FS

Embed all translations in the resources directory

Functions

func NewCleanIPExtension

func NewCleanIPExtension() ex.Extension

Types

type CleanIPExtension

type CleanIPExtension struct {
	ex.Base[CleanIPExtensionConfig]
	// contains filtered or unexported fields
}

func (*CleanIPExtension) BeforeAppConnect

func (e *CleanIPExtension) BeforeAppConnect(hiddifySettings *config.HiddifyOptions, singconfig *option.Options) error

func (*CleanIPExtension) Close

func (e *CleanIPExtension) Close() error

func (*CleanIPExtension) GetUI

func (e *CleanIPExtension) GetUI() ui.Form

func (*CleanIPExtension) Ping

func (*CleanIPExtension) RunScan

func (e *CleanIPExtension) RunScan(ctx context.Context)

func (*CleanIPExtension) SubmitData

func (e *CleanIPExtension) SubmitData(button string, data map[string]string) error

type CleanIPExtensionConfig

type CleanIPExtensionConfig struct {
	Count               int                      `json:"count"`
	SearchIPRanges      []netip.Prefix           `json:"searchIPranges"`
	UseXrayWhenPossible bool                     `json:"useXrayWhenPossible"`
	Config              *option.Options          `json:"config,omitempty"`
	CleanIPList         []cleanip_scanner.IPInfo `json:"cleanIPList"`
}

Jump to

Keyboard shortcuts

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