Documentation
¶
Index ¶
- Variables
- func ClearAllBlobs(page *rod.Page, dynaminData map[string]interface{})
- func GetTab() *rod.Page
- func Init(ctx context.Context, tabPool int) error
- func InitializeTabManager(ctx context.Context, tabPool int)
- func IsURLAllowed(urlStr string) (bool, string)
- func ReleaseTab(page *rod.Page)
- func SetAllowedDomains(domains []string)
- type TabPool
- type ViewportConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Browser *rod.Browser
)
Functions ¶
func ClearAllBlobs ¶
func InitializeTabManager ¶
func IsURLAllowed ¶
IsURLAllowed reports whether the URL may be fetched during PDF generation. Rules:
- Only https:// URLs are eligible.
- The host must exactly equal an allowlisted entry, or be a single-label alphanumeric subdomain of one (no dots or hyphens in the subdomain part).
func ReleaseTab ¶
func SetAllowedDomains ¶
func SetAllowedDomains(domains []string)
SetAllowedDomains replaces the allowlist. Safe for concurrent use with IsURLAllowed so the embedder (typically the service) can push updates at runtime — e.g. from a config hot-reload callback.
Types ¶
Click to show internal directories.
Click to hide internal directories.