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.
Click to show internal directories.
Click to hide internal directories.