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 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)
Click to show internal directories.
Click to hide internal directories.