Compatibility
This commit is contained in:
父節點
95d4afc82a
當前提交
2461423589
7
defs.go
7
defs.go
|
@ -135,6 +135,13 @@ type config struct {
|
||||||
*sync.RWMutex
|
*sync.RWMutex
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewDefaultSwamp returns a new Swamp instance.
|
||||||
|
//
|
||||||
|
// Deprecated: use NewProxyEngine instead.
|
||||||
|
func NewDefaultSwamp() *Swamp {
|
||||||
|
return NewProxyEngine()
|
||||||
|
}
|
||||||
|
|
||||||
// NewProxyEngine returns a Swamp with default options.
|
// NewProxyEngine returns a Swamp with default options.
|
||||||
// After calling this you may use the various "setters" to change the options before calling Swamp.Start().
|
// After calling this you may use the various "setters" to change the options before calling Swamp.Start().
|
||||||
func NewProxyEngine() *Swamp {
|
func NewProxyEngine() *Swamp {
|
||||||
|
|
載入中…
新增問題並參考