experimental

package
v1.11.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: GPL-2.0 Imports: 8 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateClashModeList added in v1.4.0

func CalculateClashModeList(options option.Options) []string

func NewClashServer

func NewClashServer(ctx context.Context, router adapter.Router, logFactory log.ObservableFactory, options option.ClashAPIOptions) (adapter.ClashServer, error)

func NewV2RayServer added in v1.1.0

func NewV2RayServer(logger log.Logger, options option.V2RayAPIOptions) (adapter.V2RayServer, error)

func RegisterClashServerConstructor added in v1.1.0

func RegisterClashServerConstructor(constructor ClashServerConstructor)

func RegisterV2RayServerConstructor added in v1.1.0

func RegisterV2RayServerConstructor(constructor V2RayServerConstructor)

Types

type ClashServerConstructor added in v1.1.0

type ClashServerConstructor = func(ctx context.Context, router adapter.Router, logFactory log.ObservableFactory, options option.ClashAPIOptions) (adapter.ClashServer, error)

type V2RayServerConstructor added in v1.1.0

type V2RayServerConstructor = func(logger log.Logger, options option.V2RayAPIOptions) (adapter.V2RayServer, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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