feat/refactor: support the node-level proxy chain (#235)

* feat/refactor: support the chains node

* docs: update example.dae

* fix: order

* fix: http

---------

Co-authored-by: dae-bot[bot] <136105375+dae-bot[bot]@users.noreply.github.com>
This commit is contained in:
mzz
2023-07-23 20:36:57 +08:00
committed by GitHub
parent 9a2aecdb2c
commit a2f7c37f4d
24 changed files with 330 additions and 199 deletions

View File

@ -17,9 +17,9 @@ var (
type Dialer struct {
*GlobalOption
InstanceOption InstanceOption
InstanceOption
netproxy.Dialer
property Property
property *Property
collectionFineMu sync.Mutex
collections [6]*collection
@ -57,7 +57,7 @@ type Property struct {
type AliveDialerSetSet map[*AliveDialerSet]int
// NewDialer is for register in general.
func NewDialer(dialer netproxy.Dialer, option *GlobalOption, iOption InstanceOption, property Property) *Dialer {
func NewDialer(dialer netproxy.Dialer, option *GlobalOption, iOption InstanceOption, property *Property) *Dialer {
var collections [6]*collection
for i := range collections {
collections[i] = newCollection()
@ -92,6 +92,6 @@ func (d *Dialer) Close() error {
return nil
}
func (d *Dialer) Property() Property {
func (d *Dialer) Property() *Property {
return d.property
}