libv2ray

package module
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: 1 Imported by: 0

README

go-libv2ray

GoDoc Go Report Card CodeFactor
v2ray of rurirei/Kitsunebi, based on 2dust/AndroidLibV2rayLite

Features

Build

go build yourself, or releases

Credits

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIsRunning

func GetIsRunning() bool

GetIsRunning returns of Instance.isRunning

func QueryStats

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

QueryStats returns traffic usage of given point

func Version

func Version() string

Version returns string of version (libv2ray + v2ray-core)

Types

type Tun2socksServiceSupportsSet

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

Tun2socksServiceSupportsSet is the interface of platform Android

type V2RayPointer

type V2RayPointer struct {
}

V2RayPointer is a public type

func NewV2RayPointer

NewV2RayPointer returns an instance of V2RayPoint

func (*V2RayPointer) Start

func (v *V2RayPointer) Start() error

Start runs V2Ray

func (*V2RayPointer) Stop

func (v *V2RayPointer) Stop() error

Stop stops V2Ray

type V2RayServiceSupportsSet

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

V2RayServiceSupportsSet is the interface of platform Android

type VPNServiceSupportsSet

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

VPNServiceSupportsSet is the interface of platform Android

Directories

Path Synopsis
UTIL

Jump to

Keyboard shortcuts

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