app

package
v2.14.1+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterApplicationFactory

func RegisterApplicationFactory(defaultConfig proto.Message, factory ApplicationFactory) error

Types

type AppGetter

type AppGetter interface {
	GetApp(name string) Application
}

type Application added in v1.13.1

type Application interface {
}

type ApplicationFactory

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

type InitializationCallback

type InitializationCallback func() error

type Space added in v1.1.1

type Space interface {
	AddApp(config proto.Message) error
	AddAppLegacy(name string, app Application)
	Initialize() error
	OnInitialize(InitializationCallback)
}

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