Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddApplicationToSpace ¶
Types ¶
type Application ¶ added in v1.13.1
type Application interface { Interface() interface{} Start() error Close() }
func CreateAppFromConfig ¶
func CreateAppFromConfig(ctx context.Context, config interface{}) (Application, error)
type InitializationCallback ¶
type InitializationCallback func() error
type Space ¶ added in v1.1.1
type Space interface { GetApplication(appInterface interface{}) Application AddApplication(application Application) error Initialize() error OnInitialize(InitializationCallback) Start() error Close() }
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 SpaceFromContext ¶
Click to show internal directories.
Click to hide internal directories.