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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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