Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MappingForward means that first element in the prediction tuple // is a probability of associating DNS query to the "good" domain // names. The second element is a probability of "bad" domain. MappingForward = "forward" // MappingReverse is reversed representation of probabilities in // the prediction tuple returned by the model. MappingReverse = "reverse" )
Variables ¶
View Source
var ( // DefaultTransport is a default configuration of the Transport. DefaultTransport http.RoundTripper = &http.Transport{ Proxy: http.ProxyFromEnvironment, DialContext: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, DualStack: true, }).DialContext, MaxIdleConns: 100, IdleConnTimeout: 90 * time.Second, TLSHandshakeTimeout: 10 * time.Second, ExpectContinueTimeout: 1 * time.Second, } // DefaultClient is a default instance of the HTTP client. DefaultClient = &http.Client{ Transport: DefaultTransport, } )
Functions ¶
This section is empty.
Types ¶
type Dnstun ¶
type Dnstun struct {
// contains filtered or unexported fields
}
Dnstun is a plugin to block DNS tunneling queries.
type PredictRequest ¶
type PredictRequest struct {
Instances [][]int `json:"instances"`
}
PredictRequest is a request to get predictions for the given attribute vectors.
type PredictResponse ¶
type PredictResponse struct {
Predictions [][]float64 `json:"predictions"`
}
PredictResponse lists probabilities for each attribute vector.
Click to show internal directories.
Click to hide internal directories.