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 { common.Releasable }
type ApplicationFactory ¶
type ApplicationFactory interface { Create(space Space, config interface{}) (Application, error) AppId() ID }
type Context ¶ added in v1.1.4
type Context interface {
CallerTag() string
}
Context of a function call from proxy to app.
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.
Directories ¶
Path | Synopsis |
---|---|
Package dispatcher is a generated protocol buffer package.
|
Package dispatcher is a generated protocol buffer package. |
Package dns is a generated protocol buffer package.
|
Package dns is a generated protocol buffer package. |
Package proxyman is a generated protocol buffer package.
|
Package proxyman is a generated protocol buffer package. |
Package router is a generated protocol buffer package.
|
Package router is a generated protocol buffer package. |
Package web is a generated protocol buffer package.
|
Package web is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.