mirror of
https://github.com/aykhans/dodo.git
synced 2025-07-02 00:16:20 +00:00
🔨 Refactor all requests package logic.
- Replace net/http with fasthttp in the requests package.
This commit is contained in:
@ -2,6 +2,7 @@ package config
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/url"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
@ -23,9 +24,9 @@ type IConfig interface {
|
||||
MergeConfigs(newConfig IConfig) IConfig
|
||||
}
|
||||
|
||||
type DodoConfig struct {
|
||||
type RequestConfig struct {
|
||||
Method string
|
||||
URL string
|
||||
URL *url.URL
|
||||
Timeout time.Duration
|
||||
DodosCount int
|
||||
RequestCount int
|
||||
@ -36,7 +37,7 @@ type DodoConfig struct {
|
||||
Body string
|
||||
}
|
||||
|
||||
func (config *DodoConfig) Print() {
|
||||
func (config *RequestConfig) Print() {
|
||||
t := table.NewWriter()
|
||||
t.SetOutputMirror(os.Stdout)
|
||||
t.SetStyle(table.StyleLight)
|
||||
|
Reference in New Issue
Block a user