hide space implementations from interfaces

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

No files matched your search

+2 -2
View File
@@ -24,11 +24,11 @@ var (
// SocksServer is a SOCKS 5 proxy server
type SocksServer struct {
accepting bool
space *app.Space
space app.Space
config Config
}
func NewSocksServer(space *app.Space, config Config) *SocksServer {
func NewSocksServer(space app.Space, config Config) *SocksServer {
return &SocksServer{
space: space,
config: config,
+1 -1
View File
@@ -8,7 +8,7 @@ import (
type SocksServerFactory struct {
}
func (this SocksServerFactory) Create(space *app.Space, rawConfig interface{}) (connhandler.InboundConnectionHandler, error) {
func (this SocksServerFactory) Create(space app.Space, rawConfig interface{}) (connhandler.InboundConnectionHandler, error) {
return NewSocksServer(space, rawConfig.(Config)), nil
}