Skip to content

ravlio/hlcuptester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Highloadcup 2018 datafile loader

Usage

import (
	"fmt"
	"github.com/ravlio/hlcuptester"
	"log"
)

func main() {
    // Load args: path_to_data_folder, phase_number [,optional_array_with_allowed_uri_filters])
	ch, err := hlcuptester.Load("path/to/highloadcup2018/data/", 2, "accounts/new")

	if err != nil {
		log.Fatal(err)
	}

	for a := range ch {
		if a.Err != nil {
			log.Fatal(err)
		}

		fmt.Printf("URI: %s\nRequestBody: %s\nResponseStatus: %d\nResponseBody:%s\n\n", a.URI, a.RequestBody, a.ResponseStatus, a.ResponseBody)
	}
}

Other Projects

atercattus/highloadcup_tester - standalone validate and benchmark tool

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages