app

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingApplication = errors.New("App: Failed to found one or more applications.")
)

Functions

This section is empty.

Types

type Application

type Application interface {
	common.Releasable
}

type ApplicationInitializer

type ApplicationInitializer func() error

type Caller

type Caller interface {
	Tag() string
}

type Context

type Context interface {
	CallerTag() string
}

Context of a function call from proxy to app.

type ID

type ID int

type Space

type Space interface {
	Initialize() error
	InitializeApplication(ApplicationInitializer)

	HasApp(ID) bool
	GetApp(ID) Application
	BindApp(ID, Application)
}

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.

func NewSpace

func NewSpace() Space

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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