Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusOK = "ok" StatusError = "error" )
Variables ¶
This section is empty.
Functions ¶
func ResolveConfigPath ¶
func SaveConfig ¶
Types ¶
type ChallengeResolutionResult ¶
type ChallengeResolutionResult = browserpkg.ChallengeResolutionResult
type Config ¶
type Config struct {
Host string
Port int
BrowserBackend string // "auto" | "chromedriver" | "geckodriver"
BrowserPath string
DriverPath string
DriverCacheDir string
DriverAutoDownload bool
ChromeForTestingURL string
Headless bool
StartupUserAgent string
LogLevel string
LogHTML bool
DebugLogging bool
DisableMedia bool
PrometheusEnabled bool
PrometheusPort int
DefaultProxy *Proxy
Version string
Logger *slog.Logger
}
func DefaultConfig ¶
func DefaultConfig() Config
func LoadConfig ¶
func PrepareConfig ¶
type Cookie ¶
type Cookie = browserpkg.Cookie
type HealthResponse ¶
type HealthResponse struct {
Status string `json:"status"`
}
type IndexResponse ¶
type Proxy ¶
type Proxy = browserpkg.Proxy
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) ListenAndServe ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) ApplyConfig ¶
func (*Service) ControllerV1 ¶
type V1Request ¶
type V1Request struct {
Cmd string `json:"cmd,omitempty"`
Cookies []Cookie `json:"cookies,omitempty"`
MaxTimeout int `json:"maxTimeout,omitempty"`
Proxy *Proxy `json:"proxy,omitempty"`
Session string `json:"session,omitempty"`
SessionTTLMinutes int `json:"session_ttl_minutes,omitempty"`
Headers any `json:"headers,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
URL string `json:"url,omitempty"`
PostData string `json:"postData,omitempty"`
ReturnOnlyCookies bool `json:"returnOnlyCookies,omitempty"`
ReturnScreenshot bool `json:"returnScreenshot,omitempty"`
Download *bool `json:"download,omitempty"`
ReturnRawHTML *bool `json:"returnRawHtml,omitempty"`
WaitInSeconds int `json:"waitInSeconds,omitempty"`
DisableMedia *bool `json:"disableMedia,omitempty"`
TabsTillVerify *int `json:"tabs_till_verify,omitempty"`
}
type V1Response ¶
type V1Response struct {
Status string `json:"status"`
Message string `json:"message"`
Session string `json:"session,omitempty"`
Sessions []string `json:"sessions,omitempty"`
StartTimestamp int64 `json:"startTimestamp,omitempty"`
EndTimestamp int64 `json:"endTimestamp,omitempty"`
Version string `json:"version,omitempty"`
Solution *ChallengeResolutionResult `json:"solution,omitempty"`
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
geckodriver
Package geckodriverbackend implements the browser.Client interface on top of geckodriver + Firefox (typically daijro/camoufox).
|
Package geckodriverbackend implements the browser.Client interface on top of geckodriver + Firefox (typically daijro/camoufox). |
Click to show internal directories.
Click to hide internal directories.