mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-14 06:46:11 +00:00
comments
This commit is contained in:
4 files changed
+8
No files matched your search
@@ -8,12 +8,14 @@ import (
|
||||
"v2ray.com/core/common/event"
|
||||
)
|
||||
|
||||
// Application is a component that runs in Space.
|
||||
type Application interface {
|
||||
Interface() interface{}
|
||||
Start() error
|
||||
Close()
|
||||
}
|
||||
|
||||
// CreateAppFromConfig creates an Application based on its config. Application must have been registered.
|
||||
func CreateAppFromConfig(ctx context.Context, config interface{}) (Application, error) {
|
||||
application, err := common.CreateObject(ctx, config)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user