Versions in this module Expand all Collapse all v0 v0.2.0 Nov 12, 2026 Changes in this version + const DefaultIPNetworks + const ExtendedIPNetworks + const TokenIPNetworkOverflowPrefix + const TokenIPNetworkPrefix2 + const TokenPasswordPrefix + func IsIPv4PlaceholderAddr(addr netip.Addr) bool type EntityType + const EntityPassword type Store + func (s *Store) DeleteCount() uint64 + func (s *Store) LabelOnlyValues() (map[string]EntityType, uint64) + func (s *Store) LabelOnlyVersion() uint64 + func (s *Store) SetExtendedIPv4Pool(on bool) v0.1.0 Sep 5, 2026 Changes in this version + const TokenADMachineAccountPrefix + const TokenAWSKeyPrefix + const TokenAWSSecretKeyPrefix + const TokenAadhaarPrefix + const TokenAnthropicPrefix + const TokenArtifactoryPrefix + const TokenAzureStorageKeyPrefix + const TokenBearerPrefix + const TokenBitbucketPrefix + const TokenCircleCIPrefix + const TokenCloudflarePrefix + const TokenConnStringMarker + const TokenCustomBlockPrefix + const TokenDigitalOceanPrefix + const TokenDockerHubPrefix + const TokenDomainPrefix + const TokenEmailLocalPrefix + const TokenGPPCPasswordPrefix + const TokenGitHubPrefix + const TokenGitLabPrefix + const TokenGoogleAPIKeyPrefix + const TokenIPNetworkPrefix + const TokenIPv6NetworkPrefix + const TokenIntlPhonePrefix + const TokenItsdangerousPrefix + const TokenJWTPrefix + const TokenMACPrefix + const TokenNPMPrefix + const TokenOpenAIMarker + const TokenOpenAIPrefix + const TokenPANPrefix + const TokenPEMKeyBeginMarker + const TokenPEMKeyEndMarker + const TokenPasswordHashPrefix + const TokenPhonePrefix + const TokenRazorpayPrefix + const TokenSendGridPrefix + const TokenSlackTokenPrefix + const TokenSlackWebhookMarker + const TokenSnykPrefix + const TokenStripePrefix + const TokenTerraformPrefix + const TokenTwilioSIDPrefix + const TokenVaultPrefix + func IsLockTimeout(err error) bool + type EntityType string + const EntityADMachineAccount + const EntityAWSKey + const EntityAWSSecretKey + const EntityAadhaar + const EntityAnthropicKey + const EntityArtifactory + const EntityAzureStorageKey + const EntityBearerToken + const EntityBitbucket + const EntityCircleCI + const EntityCloudflare + const EntityConnString + const EntityCustomBlock + const EntityDigitalOcean + const EntityDockerHub + const EntityDomain + const EntityEmailLocal + const EntityGPPCPassword + const EntityGitHubToken + const EntityGitLabToken + const EntityGoogleAPIKey + const EntityIPNetwork + const EntityIPv6Network + const EntityIntlPhone + const EntityItsdangerousToken + const EntityJWT + const EntityMAC + const EntityNPMToken + const EntityOpenAI + const EntityPAN + const EntityPEMKey + const EntityPasswordHash + const EntityPhone + const EntityRazorpay + const EntitySendGridKey + const EntitySlackToken + const EntitySlackWebhook + const EntitySnyk + const EntityStripeKey + const EntityTerraform + const EntityTwilioSID + const EntityVault + func AllEntityTypes() []EntityType + type Entry struct + EntityType EntityType + FirstSeen time.Time + Real string + Token string + type Span struct + End int + Start int + type Store struct + func Open(path string) (*Store, error) + func (s *Store) AlreadyTokenizedSpans(text string) []Span + func (s *Store) Close() error + func (s *Store) Delete(real string) (bool, error) + func (s *Store) GetOrCreateToken(real string, et EntityType) (string, error) + func (s *Store) List() ([]Entry, error) + func (s *Store) LookupReal(token string) (string, bool) + func (s *Store) LookupToken(real string) (string, bool) + func (s *Store) MintAndRegisterSpan(reals []string, types []EntityType, buildSpan func(tokens []string) string) ([]string, error) + func (s *Store) RegisterSpan(span string) error + func (s *Store) SafeFlushPoint(buf []byte) int