pkg/urlhaus/api.go
Method Client.IsBad
has 8 return statements (exceeds 4 allowed). Open
Open
func (client *Client) IsBad(parent context.Context, msg *queue.DomainAccessMessage) bool {
ctx, cancel := context.WithTimeout(parent, timeout)
defer cancel()
request, err := http.NewRequestWithContext(ctx, "POST", url+"/v1/host", bytes.NewBuffer([]byte("host="+msg.Domain)))
exported method Client.Connect should have comment or be unexported Open
Open
func (client *Client) Connect() error {
- Exclude checks
exported method Client.IsAsync should have comment or be unexported Open
Open
func (client *Client) IsAsync() bool {
- Exclude checks
exported method Client.IsBad should have comment or be unexported Open
Open
func (client *Client) IsBad(parent context.Context, msg *queue.DomainAccessMessage) bool {
- Exclude checks