This commit is contained in:
Darien Raymond committed 2017-12-14 15:02:36 +01:00
1 parent 6797483fe0
commit 484bdeecc9
4 files changed
+8

No files matched your search

+2
View File
@@ -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 {