internal

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DnsCacheWithContext

type DnsCacheWithContext interface {
	Get(context app.Context, domain string) net.IP
	Add(contaxt app.Context, domain string, ip net.IP)
}

type PacketDispatcherWithContext

type PacketDispatcherWithContext interface {
	DispatchToOutbound(context app.Context, packet v2net.Packet) ray.InboundRay
}

type PubsubWithContext

type PubsubWithContext interface {
	Publish(context app.Context, topic string, message app.PubsubMessage)
	Subscribe(context app.Context, topic string, handler app.TopicHandler)
}

type Space

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

func NewSpace

func NewSpace(tag string, packetDispatcher PacketDispatcherWithContext, dnsCache DnsCacheWithContext, pubsub PubsubWithContext) *Space

func (*Space) DnsCache

func (this *Space) DnsCache() app.DnsCache

func (*Space) HasDnsCache

func (this *Space) HasDnsCache() bool

func (*Space) HasPacketDispatcher

func (this *Space) HasPacketDispatcher() bool

func (*Space) HasPubsub

func (this *Space) HasPubsub() bool

func (*Space) PacketDispatcher

func (this *Space) PacketDispatcher() app.PacketDispatcher

func (*Space) Pubsub

func (this *Space) Pubsub() app.Pubsub

Jump to

Keyboard shortcuts

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