1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-02 23:35:40 -05:00

hide space implementations from interfaces

This commit is contained in:
Darien Raymond
2015-12-11 11:01:20 +00:00
parent 46ab9c45cc
commit dd81fc6f6a
23 changed files with 162 additions and 119 deletions

View File

@@ -16,10 +16,10 @@ type DokodemoDoor struct {
config Config
accepting bool
address v2net.Address
space *app.Space
space app.Space
}
func NewDokodemoDoor(space *app.Space, config Config) *DokodemoDoor {
func NewDokodemoDoor(space app.Space, config Config) *DokodemoDoor {
return &DokodemoDoor{
config: config,
space: space,

View File

@@ -8,7 +8,7 @@ import (
type DokodemoDoorFactory struct {
}
func (this DokodemoDoorFactory) Create(space *app.Space, rawConfig interface{}) (connhandler.InboundConnectionHandler, error) {
func (this DokodemoDoorFactory) Create(space app.Space, rawConfig interface{}) (connhandler.InboundConnectionHandler, error) {
config := rawConfig.(Config)
return NewDokodemoDoor(space, config), nil
}