NewSPTPHTTPTester initializes a Tester
(server string, sptpurl string, linearizabilityTestMaxGMOffset time.Duration)
| 96 | |
| 97 | // NewSPTPHTTPTester initializes a Tester |
| 98 | func NewSPTPHTTPTester(server string, sptpurl string, linearizabilityTestMaxGMOffset time.Duration) (*SPTPHTTPTester, error) { |
| 99 | cfg := &SPTPHTTPTestConfig{ |
| 100 | Server: server, |
| 101 | sptpurl: sptpurl, |
| 102 | LinearizabilityTestMaxGMOffset: linearizabilityTestMaxGMOffset, |
| 103 | } |
| 104 | |
| 105 | t := &SPTPHTTPTester{ |
| 106 | cfg: cfg, |
| 107 | } |
| 108 | return t, nil |
| 109 | } |
| 110 | |
| 111 | // Close the connection |
| 112 | func (lt *SPTPHTTPTester) Close() error { |
no outgoing calls
searching dependent graphs…