app

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context added in v1.1.4

type Context interface {
	CallerTag() string
}

Context of a function call from proxy to app.

type DnsCache added in v1.1.1

type DnsCache interface {
	Get(domain string) net.IP
	Add(domain string, ip net.IP)
}

A DnsCache is an internal cache of DNS resolutions.

type PacketDispatcher

type PacketDispatcher interface {
	DispatchToOutbound(packet v2net.Packet) ray.InboundRay
}

PacketDispatcher dispatch a packet and possibly further network payload to its destination.

type Pubsub added in v1.1.4

type Pubsub interface {
	Publish(topic string, message PubsubMessage)
	Subscribe(topic string, handler TopicHandler)
}

type PubsubMessage added in v1.1.4

type PubsubMessage []byte

type Space added in v1.1.1

type Space interface {
	HasPacketDispatcher() bool
	PacketDispatcher() PacketDispatcher

	HasDnsCache() bool
	DnsCache() DnsCache

	HasPubsub() bool
	Pubsub() Pubsub
}

A Space contains all apps that may be available in a V2Ray runtime. Caller must check the availability of an app by calling HasXXX before getting its instance.

type TopicHandler added in v1.1.4

type TopicHandler func(PubsubMessage)

Directories

Path Synopsis
dns

Jump to

Keyboard shortcuts

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