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