Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_STATUS = http.StatusOK
View Source
const MAX_SLEEP = (15 * time.Second)
View Source
const RECORD_HASH_STRING = "status=%d|method=%s|endpoint=%s|header=%#v|sleep=%v|echo=%v"
Used to create a string for hashing a Record
View Source
const RECORD_HEADER = "X-Noopserverflags"
View Source
const SPLIT_HEADER_VALUE = ":"
View Source
const SPLIT_RECORD_HEADER = ";"
Variables ¶
View Source
var VALID_SCHEMES = []string{"http", "https"}
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct { Timestamp time.Time Iterations int Headers *http.Header Method string Status int Sleep time.Duration Echo bool // contains filtered or unexported fields }
type RecordMap ¶
type RecordMap struct {
// contains filtered or unexported fields
}
WARNING: This will grow with variable requests
func NewRecordMap ¶
func NewRecordMap() *RecordMap
func (*RecordMap) Iterations ¶ added in v1.3.2
Click to show internal directories.
Click to hide internal directories.