trackericon

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2026 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectIconContentType

func DetectIconContentType(data []byte) string

DetectIconContentType detects the image format MIME type.

func GetTrackerIcon

func GetTrackerIcon(ctx context.Context, dbPath string, domain string, customURL string) (string, error)

GetTrackerIcon resolves the domain icon, caches it under the dbPath directory, and returns its Base64 Data URL.

func SafeDomainFilename

func SafeDomainFilename(domain string) string

SafeDomainFilename purges disallowed characters from domain strings for file system safety.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL