-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
127 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
@startuml | ||
Alice -> Bob: Authentication Request | ||
Bob --> Alice: Authentication Response | ||
|
||
Alice -> Bob: Another authentication Request | ||
Alice <-- Bob: another authentication Response | ||
client -> middleman: HTTP Connect Method | ||
middleman -> real_proxy: HTTP Connect Method | ||
real_proxy -> target_host: TCP Connect | ||
|
||
target_host --> real_proxy: TCP Establish | ||
real_proxy --> middleman: HTTP Establish | ||
middleman --> client: HTTP Establish | ||
|
||
client -> middleman: TLS Handshake | ||
middleman -> real_proxy: Copy Raw Data | ||
real_proxy -> target_host: Copy Raw Data | ||
|
||
target_host --> real_proxy: TLS Handshake Done | ||
real_proxy --> middleman: Copy Raw Data | ||
middleman --> client: Copy Raw Data | ||
|
||
client -> middleman: Application Data | ||
middleman -> real_proxy: Copy Raw Data | ||
real_proxy -> target_host: Copy Raw Data | ||
|
||
target_host --> real_proxy: Application Data | ||
real_proxy --> middleman: Copy Raw Data | ||
middleman --> client: Copy Raw Data | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/Leosocy/IntelliProxy/pkg/sched" | ||
"github.com/Leosocy/IntelliProxy/service/middleman" | ||
"net/http" | ||
) | ||
|
||
func main() { | ||
//scheduler := sched.NewScheduler() | ||
//scheduler.Start() | ||
middleman.ListenAndServe() | ||
scheduler := sched.NewScheduler() | ||
middlemanServer := middleman.NewServer(scheduler.GetStorage()) | ||
http.ListenAndServe("0.0.0.0:8081", middlemanServer) | ||
scheduler.Start() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Copyright (c) 2019 leosocy, [email protected] | ||
// Use of this source code is governed by a MIT-style license | ||
// that can be found in the LICENSE file. | ||
|
||
package selector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Copyright (c) 2019 leosocy, [email protected] | ||
// Use of this source code is governed by a MIT-style license | ||
// that can be found in the LICENSE file. | ||
|
||
package selector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters