CORE

package
v0.0.0-...-b4516c8 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: GPL-3.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIsRunning

func GetIsRunning() bool

func QueryStats

func QueryStats(title string, tag string, direct string) (int64, error)

func Start

func Start() error

func Stop

func Stop() error

func TestConfig

func TestConfig(configFileContent string) (*v2core.Config, error)

func Version

func Version() string

Types

type Tun2socksServiceSupportsSet

type Tun2socksServiceSupportsSet interface {
	UseIPv6() bool
	LogLevel() string
	FakeIPRange() string
	SocksAddress() string
	HandlePackets() []byte
	PacketFlow(data []byte)
}

type V2RayPoint

type V2RayPoint struct {
	V2RaySupportSet     V2RayServiceSupportsStruct
	Tun2socksSupportSet Tun2socksServiceSupportsSet
	VPNSupportSet       VPNServiceSupportsSet
	// contains filtered or unexported fields
}

func (*V2RayPoint) GetIsRunning

func (v *V2RayPoint) GetIsRunning() bool

func (*V2RayPoint) QueryStats

func (v *V2RayPoint) QueryStats(title string, tag string, direct string) (int64, error)

func (*V2RayPoint) Start

func (v *V2RayPoint) Start() (err error)

func (*V2RayPoint) Stop

func (v *V2RayPoint) Stop() (err error)

type V2RayServiceSupportsSet

type V2RayServiceSupportsSet interface {
	ProxyOnly() bool
	ResolveDnsNext() bool
	ConfigFile() string
}

type V2RayServiceSupportsStruct

type V2RayServiceSupportsStruct struct {
	// contains filtered or unexported fields
}

type VPNServiceSupportsSet

type VPNServiceSupportsSet interface {
	Setup() int
	Prepare() int
	Shutdown() int
	Protect(int) int
	OnEmitStatus(int, string) int
}

Jump to

Keyboard shortcuts

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