1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00
This commit is contained in:
Darien Raymond 2017-11-30 12:55:31 +01:00
parent 3aa5102036
commit 21bcf64f0f
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -38,6 +38,7 @@ type Space interface {
} }
const ( const (
// SpaceInitializing is an event to be fired when Space is being initialized.
SpaceInitializing event.Event = iota SpaceInitializing event.Event = iota
) )
@ -47,6 +48,7 @@ type spaceImpl struct {
initialized bool initialized bool
} }
// NewSpace creates a new Space.
func NewSpace() Space { func NewSpace() Space {
return &spaceImpl{ return &spaceImpl{
cache: make(map[reflect.Type]Application), cache: make(map[reflect.Type]Application),