browserprovider

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultRegistry

func NewDefaultRegistry() map[cookies.Browser]BrowserProvider

func UserAgent added in v0.3.2

func UserAgent(b cookies.Browser, goos, storePath string) string

UserAgent assembles the browser's User-Agent, reading its version from storePath (Safari uses its app bundle).

Types

type Backend

type Backend interface {
	Name() string
	Load(ctx context.Context, host string, source cookies.Source) ([]CookieSet, error)
}

type BrowserProvider

type BrowserProvider interface {
	Browser() cookies.Browser
	BackendName() string
	Load(ctx context.Context, host string, source cookies.Source) ([]BrowserSession, error)
}

type BrowserSession

type BrowserSession struct {
	Browser   cookies.Browser
	Profile   string
	Cookies   []*http.Cookie
	UserAgent string
}

type CookieSet added in v0.2.1

type CookieSet struct {
	Profile   string
	Cookies   []*http.Cookie
	StorePath string
}

Jump to

Keyboard shortcuts

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