guess

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package guess discovers related social media profiles based on known usernames.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Related(ctx context.Context, known []*profile.Profile, cfg Config) []*profile.Profile

Related discovers related profiles based on known profiles. It extracts usernames and tries to find matching profiles on other platforms.

Types

type Config

type Config struct {
	Logger           *slog.Logger
	Fetcher          Fetcher
	PlatformDetector PlatformDetector
}

Config holds configuration for guessing.

type Fetcher

type Fetcher func(ctx context.Context, url string) (*profile.Profile, error)

Fetcher is a function that fetches a profile from a URL.

type PlatformDetector

type PlatformDetector func(url string) string

PlatformDetector is a function that returns the platform name for a URL.

Jump to

Keyboard shortcuts

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