Documentation ¶
Index ¶
- Variables
- func CompareHTTPResponse(rsp1 *http.Response, rsp2 *http.Response) float64
- func CompareHTTPResponseRaw(rsp1 []byte, rsp2 []byte) float64
- func CompareHtml(s1, s2 []byte) (f float64)
- func CompareJsons(s1, s2 []byte) float64
- type Config
- type CookieSortable
- type Discriminator
- func (d *Discriminator) AdjustNegativeThreshold(raw []byte) error
- func (d *Discriminator) AdjustPositiveThreshold(raw []byte) error
- func (d *Discriminator) IsNegative(raw []byte) bool
- func (d *Discriminator) IsNegativeWithThreshold(raw []byte, threshold float64) bool
- func (d *Discriminator) IsPositive(raw []byte) bool
- func (d *Discriminator) IsPositiveWithThreshold(raw []byte, threshold float64) bool
- func (d *Discriminator) SetNegativeSample(raw []byte)
- type MapItemSortable
- type ReflectValueSortable
- type Sortable
Constants ¶
This section is empty.
Variables ¶
View Source
var Exports = map[string]interface{}{ "CompareRaw": CompareHTTPResponseRaw, "CompareHTTPResponse": CompareHTTPResponse, "NewDiscriminator": NewDiscriminator, }
Functions ¶
func CompareHTTPResponse ¶
func CompareHTTPResponseRaw ¶
func CompareHtml ¶
func CompareJsons ¶
Types ¶
type CookieSortable ¶
func (CookieSortable) Len ¶
func (a CookieSortable) Len() int
func (CookieSortable) Less ¶
func (a CookieSortable) Less(i, j int) bool
func (CookieSortable) Swap ¶
func (a CookieSortable) Swap(i, j int)
type Discriminator ¶
type Discriminator struct { PositiveSample []byte PositiveThresholdAverage float64 NegativeSample []byte NegativeThresholdAverage float64 }
func NewDiscriminator ¶
func NewDiscriminator(origin []byte) *Discriminator
func (*Discriminator) AdjustNegativeThreshold ¶
func (d *Discriminator) AdjustNegativeThreshold(raw []byte) error
func (*Discriminator) AdjustPositiveThreshold ¶
func (d *Discriminator) AdjustPositiveThreshold(raw []byte) error
func (*Discriminator) IsNegative ¶
func (d *Discriminator) IsNegative(raw []byte) bool
func (*Discriminator) IsNegativeWithThreshold ¶
func (d *Discriminator) IsNegativeWithThreshold(raw []byte, threshold float64) bool
func (*Discriminator) IsPositive ¶
func (d *Discriminator) IsPositive(raw []byte) bool
func (*Discriminator) IsPositiveWithThreshold ¶
func (d *Discriminator) IsPositiveWithThreshold(raw []byte, threshold float64) bool
func (*Discriminator) SetNegativeSample ¶
func (d *Discriminator) SetNegativeSample(raw []byte)
type MapItemSortable ¶
type MapItemSortable []*mapIterItem
func (MapItemSortable) Len ¶
func (a MapItemSortable) Len() int
func (MapItemSortable) Less ¶
func (a MapItemSortable) Less(i, j int) bool
func (MapItemSortable) Swap ¶
func (a MapItemSortable) Swap(i, j int)
type ReflectValueSortable ¶
func (ReflectValueSortable) Len ¶
func (a ReflectValueSortable) Len() int
func (ReflectValueSortable) Less ¶
func (a ReflectValueSortable) Less(i, j int) bool
func (ReflectValueSortable) Swap ¶
func (a ReflectValueSortable) Swap(i, j int)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.