Skip to content

Commit

Permalink
change to OutputMode
Browse files Browse the repository at this point in the history
  • Loading branch information
xxf098 committed Apr 8, 2023
1 parent 8f58d80 commit c40a633
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Run as a speed test tool:
# "fontSize":24,
# "unique": true, // remove duplicated value
# "theme":"rainbow",
# "generatePicMode": 1 // 0: base64 1: pic path 2: no pic 3: json
# "outputMode": 1 // 0: base64 1: pic path 2: no pic 3: json 4: txt
./lite --config config.json --test https://raw.githubusercontent.com/freefq/free/master/v2
Expand Down Expand Up @@ -104,7 +104,7 @@ func testPing() error {
Theme: "rainbow",
Unique: true,
Timeout: 10 * time.Second,
GeneratePicMode: 0,
OutputMode: 0,
}
nodes, err := web.TestContext(ctx, opts, &web.EmptyMessageWriter{})
if err != nil {
Expand Down
24 changes: 12 additions & 12 deletions examples/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ func main() {
log.Fatal("link required")
}
opts := web.ProfileTestOptions{
GroupName: "Default",
SpeedTestMode: *mode, // pingonly speedonly all
PingMethod: "googleping", // googleping
SortMethod: "rspeed", // speed rspeed ping rping
Concurrency: 2,
TestMode: 2, // 2: ALLTEST 3: RETEST
Subscription: *link,
Language: "en", // en cn
FontSize: 24,
Theme: "rainbow",
Timeout: 10 * time.Second,
GeneratePicMode: 0, // 0: base64 1:file path 2: no pic
GroupName: "Default",
SpeedTestMode: *mode, // pingonly speedonly all
PingMethod: "googleping", // googleping
SortMethod: "rspeed", // speed rspeed ping rping
Concurrency: 2,
TestMode: 2, // 2: ALLTEST 3: RETEST
Subscription: *link,
Language: "en", // en cn
FontSize: 24,
Theme: "rainbow",
Timeout: 10 * time.Second,
OutputMode: 0, // 0: base64 1:file path 2: no pic 3: json 4: txt
}
ctx := context.Background()
var err error
Expand Down

0 comments on commit c40a633

Please sign in to comment.