app

package
v2.13.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterApplicationFactory

func RegisterApplicationFactory(name string, factory ApplicationFactory) error

Types

type Application added in v1.13.1

type Application interface {
}

type ApplicationFactory

type ApplicationFactory interface {
	Create(space Space, config interface{}) (Application, error)
	AppId() ID
}

type ApplicationInitializer added in v1.13.1

type ApplicationInitializer func() error

type Caller added in v1.13.1

type Caller interface {
	Tag() string
}

type Context added in v1.1.4

type Context interface {
	CallerTag() string
}

Context of a function call from proxy to app.

type ID added in v1.9.1

type ID int

type Space added in v1.1.1

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

	HasApp(ID) bool
	GetApp(ID) Application
	BindApp(ID, Application)
	BindFromConfig(name string, config interface{}) error
}

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

func NewSpace() Space

Directories

Path Synopsis
dns
Package proxyman defines applications for manageing inbound and outbound proxies.
Package proxyman defines applications for manageing inbound and outbound proxies.

Jump to

Keyboard shortcuts

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