app

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2016 License: MIT Imports: 0 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

func RegisterApp added in v1.9.1

func RegisterApp(id ID, creator ForContextCreator)

Types

type Context added in v1.1.4

type Context interface {
	CallerTag() string
}

Context of a function call from proxy to app.

type ForContextCreator added in v1.9.1

type ForContextCreator func(Context, interface{}) interface{}

type ID added in v1.9.1

type ID int

type Space added in v1.1.1

type Space interface {
	HasApp(ID) bool
	GetApp(ID) interface{}
}

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 SpaceController added in v1.9.1

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

A SpaceController is supposed to be used by a shell to create Spaces. It should not be used directly by proxies.

func NewController added in v1.9.1

func NewController() *SpaceController

func (*SpaceController) Bind added in v1.9.1

func (this *SpaceController) Bind(id ID, object interface{})

func (*SpaceController) ForContext added in v1.9.1

func (this *SpaceController) ForContext(tag string) Space

Directories

Path Synopsis
dns

Jump to

Keyboard shortcuts

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