app

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIRunWarp

func APIRunWarp(ctx context.Context, l *slog.Logger, opts APIWarpOptions) error

func APIrunWarp

func APIrunWarp(ctx context.Context, l *slog.Logger, opts APIWarpOptions, endpoint string) error

func APIrunWarpInWarp

func APIrunWarpInWarp(ctx context.Context, l *slog.Logger, opts APIWarpOptions, endpoints []string) error

func APIrunWarpWithPsiphon

func APIrunWarpWithPsiphon(ctx context.Context, l *slog.Logger, opts APIWarpOptions, endpoint string) error

func APIrunWireguard

func APIrunWireguard(ctx context.Context, l *slog.Logger, opts APIWarpOptions) error

func RunWarp

func RunWarp(ctx context.Context, l *slog.Logger, opts WarpOptions) error

Types

type APIPsiphonOptions

type APIPsiphonOptions = PsiphonOptions

type APIWarpOptions

type APIWarpOptions struct {
	Bind            netip.AddrPort
	Endpoint        string
	License         string
	DnsAddr         netip.Addr
	Psiphon         *PsiphonOptions
	Gool            bool
	Scan            *wiresocks.APIScanOptions
	CacheDir        string
	FwMark          uint32
	WireguardConfig string
	Reserved        string
	TestURL         string
}

type PsiphonOptions

type PsiphonOptions struct {
	Country string
}

type WarpOptions

type WarpOptions struct {
	Bind            netip.AddrPort
	Endpoint        string
	License         string
	DnsAddr         netip.Addr
	Psiphon         *PsiphonOptions
	Gool            bool
	Scan            *wiresocks.ScanOptions
	CacheDir        string
	FwMark          uint32
	WireguardConfig string
	Reserved        string
	TestURL         string
}

Jump to

Keyboard shortcuts

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