package
Version:
v0.0.0-...-90229f9
Opens a new window with list of versions in this module.
Published: Jul 28, 2019
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type HTTPRater struct {
URL string `json:"url"`
MaxRetries int `json:"maxRetries"`
Timeout time.Duration `json:"timeout"`
}
HTTPRater implements Rater and executes the rating through a http request which it retries on timeout
Rate by sending json to URL and retry on timeout
TODO(kwiesmueller): add two-way rating
Rater provides the interface for rating two segments against eachother
Source Files
¶
Click to show internal directories.
Click to hide internal directories.