Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add throughput1 client library (#26)
* Add handler * Save archival data from deferred func * Add main, fix handler * Add script to generate local test certs * Add build script and Dockerfile. * Update go.mod/go.sum * Add basic client for testing * Swap logger * Swap logger in measurer, too * Remove files that don't belong to this PR * Remove more files that don't belong here * go mod tidy * Change metadata length limits * Add access_token to the knownOptions map. * Add partial tests and prom metrics * Duration should be milliseconds * Increase test coverage * Update go.mod * Update go.mod go.sum * Add client code * Merge branch 'main' into sandbox-roberto-client * Rename ndt8 -> throughput1 * Separate network-level and application-level measurements. This commit adds application-level measurements and namespaces to better separate the two kind of measurements in the Measurement object. It is a breaking change and will need a schema update. * Fix client * Merge branch 'main' into sandbox-roberto-client * Merge branch 'add-application-byte-counters' into sandbox-roberto-client * Merge branch 'temp-test' into sandbox-roberto-client * Make output more detailed, add server-side messages * Make application-level byte counters atomic. * Merge branch 'add-application-byte-counters' into sandbox-roberto-client * Merge branch 'main' into sandbox-roberto-client * Add debug flag and simplify code * Add -debug flag, docstrings, and call Upload() in main * Remove unused fields * Complete rename from NDT8 to Throughput1 * Use the same version for libraryVersion and clientVersion (and set it to version.Version, overridden by build flags) * Rename client to msak-client-go * Add docstrings and use the right timeout in connect() call. * Refactor code to extract runStream(). * Add docstrings. * Fix race condition. * Refactor code, only output every 100ms * Remove extra \n from OnDebug messages * Address code review comments - Make client name const - Use client package consts for flags' default values - Use log.Fatal * Update defaults, add comments * Include * Add DefaultScheme const and more docstrings * Replace fmt.Print with Emitter.OnDebug * Panic on invalid subtests * Remove ServiceURL * Move client config to a dedicated struct * Rename client.ClientConfig to client.Config * More refactoring and more comments/docstrings. * Add TLSClientConfig to defaultDialer. * Add docstrings in Emitter interface. * Merge branch 'main' into sandbox-roberto-client * FromTCPConn -> FromTCPLikeConn * Panic on empty clientName/Version in client.New() * Add comments in nextURLFromLocate and remove extra printf
- Loading branch information