Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const (
)

// cache caches results from API calls to SearchHashesRequest to reduce
// network calls for recently requested items. Since the global blacklist is
// network calls for recently requested items. Since the global blocklist is
// constantly changing, the Web Risk API defines TTLs for how long entries
// can stay alive in the cache.
type cache struct {
Expand Down
2 changes: 1 addition & 1 deletion database.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const (
)

// database tracks the state of the threat lists published by the Webrisk API.
// Since the global blacklist is constantly changing, the contents of the
// Since the global blocklist is constantly changing, the contents of the
// database needs to be periodically synced with the Webrisk servers in
// order to provide protection for the latest threats.
//
Expand Down
6 changes: 3 additions & 3 deletions webrisk_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const (
DefaultServerURL = "webrisk.googleapis.com"

// DefaultUpdatePeriod is the default period for how often WebriskClient will
// reload its blacklist database.
// reload its blocklist database.
DefaultUpdatePeriod = 30 * time.Minute

// DefaultID and DefaultVersion are the default client ID and Version
Expand Down Expand Up @@ -155,7 +155,7 @@ type Config struct {

// DBPath is a path to a persistent database file.
// If empty, WebriskClient operates in a non-persistent manner.
// This means that blacklist results will not be cached beyond the lifetime
// This means that blocklist results will not be cached beyond the lifetime
// of the WebriskClient object.
DBPath string

Expand Down Expand Up @@ -342,7 +342,7 @@ func (wr *WebriskClient) WaitUntilReady(ctx context.Context) error {
// The outer dimension is across all URLs requested, and will always have the
// same length as urls regardless of whether an error occurs or not.
// The inner dimension is across every fragment that a given URL produces.
// For some URL at index i, one can check for a hit on any blacklist by
// For some URL at index i, one can check for a hit on any blocklist by
// checking if len(threats[i]) > 0.
// The ThreatEntryType field in the inner ThreatType will be set to
// ThreatEntryType_URL as this is a URL lookup.
Expand Down