package
Version:
v5.1.1+incompatible
Opens a new window with list of versions in this module.
Published: Mar 22, 2021
License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const RouterRequestTimeout = time.Second * 10
endpoint to test Traffic Router's Pattern-Based Consistent Hashing feature
/api/1.5/consistenthash
type TRConsistentHashRequest struct {
ConsistentHashRegex string `json:"regex"`
RequestPath string `json:"requestPath"`
CdnID int64 `json:"cdnId"`
}
struct for the incoming request object
type TRConsistentHashResult struct {
ResultingPathToConsistentHash string `json:"resultingPathToConsistentHash"`
ConsistentHashRegex string `json:"consistentHashRegex"`
RequestPath string `json:"requestPath"`
}
struct for the response object from Traffic Router
Source Files
¶
Click to show internal directories.
Click to hide internal directories.