Versions in this module Expand all Collapse all v1 v1.0.0 Jan 10, 2022 Changes in this version + const ContentTypeJSON + const ContentTypeName + const DemoProfile + var Valuer jj.Substitute = &valuer + func DealUploadFilePath(ctx context.Context, uploadFilepath string, postFileCh chan string) + func ErrorIf(b bool, err1, err2 error) error + func Gen(s string, mode StringMode) string + func NetworkWrap(network string) networkWrapper + func OpenFile(f string) *os.File + func ParseBodyArg(body string, stream bool) (streamFileName string, bodyBytes []byte) + func Quoted(s, open, close string) (string, bool) + func ReadFileFromPos(f *os.File, pos int64) ([]byte, error) + func ReadMultipartFile(nocache bool, fieldName, filePath string) (data []byte, contentType string, err error) + func SetHeader(r *fasthttp.Request, header, value string) + func ThroughputStatDial(wrap networkWrapper, dial fasthttp.DialFunc, r *int64, w *int64) fasthttp.DialFunc + type Closers []io.Closer + func (closers Closers) Close() (err error) + type Keep struct + Keep string + Name string + type LogFile struct + File *os.File + Pos int64 + func CreateLogFile(verbose int, printOption uint8) *LogFile + func (f *LogFile) Close() error + func (f *LogFile) GetLastLog() string + func (f *LogFile) MarkPos() + func (f *LogFile) Write(b *bytes.Buffer) + func (f *LogFile) WriteString(s string) + type MyConn struct + func NewMyConn(conn net.Conn, r, w *int64) (*MyConn, error) + func (c *MyConn) Read(b []byte) (n int, err error) + func (c *MyConn) Write(b []byte) (n int, err error) + type Option struct + Eval bool + JsonBody bool + Tag string + type Profile struct + Body string + Comments []string + Form map[string]string + Header map[string]string + Method string + Query map[string]string + RawJSON map[string]string + URL string + func ParseProfileArg(profileArg []string) []*Profile + func ParseProfileFile(baseUrl string, fileName string) ([]*Profile, error) + func ParseProfiles(baseUrl string, r io.Reader) ([]*Profile, error) + func (p *Profile) CreateReq(isTLS bool, req *fasthttp.Request, enableGzip bool) (Closers, error) + type RangeValue struct + From string + FromInt int + IsInt bool + To string + ToInt int + func (r *RangeValue) Contains(s string) bool + type SingleValue struct + Value string + func (v SingleValue) Contains(s string) bool + type StringMode int + const MayJSON + const NotJSON + const SureJSON + type Tag struct + Raw string + Values []TagValue + func ParseTag(s string) *Tag + func (t *Tag) Contains(s string) bool + func (t Tag) String() string + type TagValue interface + Contains func(s string) bool + func NewRangeValue(a, b string) TagValue