Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AESReader ¶ added in v0.0.3
type AESReader struct {
// contains filtered or unexported fields
}
AESReader is the instance that allow to read computed hiding risk message
type ComputedHidingRisk ¶
type ComputedHidingRisk struct { Verdict Verdict `json:"v"` Token string `json:"t"` DenyScore int `json:"d"` VirtualMachineScore int `json:"vm"` AntiTrackerScore int `json:"a"` HideDeviceScore int `json:"h"` HideRealIPScore int `json:"i"` BadReputationIPScore int `json:"b"` RootScore int `json:"ro"` BotScore int `json:"bs"` }
ComputedHidingRisk is the user hiding risk score
type Reader ¶
type Reader interface {
Read(msg string) (*ComputedHidingRisk, error)
}
func NewAESReader ¶ added in v0.0.3
NewAESReader creates an instance of Reader
type ReaderSpy ¶
type ReaderSpy struct {
// contains filtered or unexported fields
}
ReaderSpy is a reader spy
func NewReaderSpy ¶
func NewReaderSpy(risk *ComputedHidingRisk, err error) *ReaderSpy
NewReaderSpy creates a spy instance of Reader
func (*ReaderSpy) GetRecordedMsg ¶
GetRecordedMsg returns message recorded on Read
func (*ReaderSpy) HasBeenRead ¶
HasBeenRead returns if Read method has been called
Click to show internal directories.
Click to hide internal directories.