Versions in this module Expand all Collapse all v0 v0.0.2 Jan 1, 2026 Changes in this version + func Bool(b bool) param.Opt[bool] + func BoolPtr(v bool) *bool + func DefaultClientOptions() []option.RequestOption + func File(rdr io.Reader, filename string, contentType string) file + func Float(f float64) param.Opt[float64] + func FloatPtr(v float64) *float64 + func Int(i int64) param.Opt[int64] + func IntPtr(v int64) *int64 + func Opt[T comparable](v T) param.Opt[T] + func Ptr[T any](v T) *T + func String(s string) param.Opt[string] + func StringPtr(v string) *string + func Time(t time.Time) param.Opt[time.Time] + func TimePtr(v time.Time) *time.Time + type Client struct + Contexts ContextService + Extensions ExtensionService + Options []option.RequestOption + Projects ProjectService + Sessions SessionService + func NewClient(opts ...option.RequestOption) (r Client) + func (r *Client) Delete(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) Execute(ctx context.Context, method string, path string, params any, res any, ...) error + func (r *Client) Get(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) Patch(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) Post(ctx context.Context, path string, params any, res any, ...) error + func (r *Client) Put(ctx context.Context, path string, params any, res any, ...) error + type ContextGetResponse struct + CreatedAt time.Time + ID string + JSON struct{ ... } + ProjectID string + UpdatedAt time.Time + func (r *ContextGetResponse) UnmarshalJSON(data []byte) error + func (r ContextGetResponse) RawJSON() string + type ContextNewParams struct + ProjectID string + func (r *ContextNewParams) UnmarshalJSON(data []byte) error + func (r ContextNewParams) MarshalJSON() (data []byte, err error) + type ContextService struct + Options []option.RequestOption + func NewContextService(opts ...option.RequestOption) (r ContextService) + func (r *ContextService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *ContextGetResponse, err error) + func (r *ContextService) New(ctx context.Context, body ContextNewParams, opts ...option.RequestOption) (res *CreateContextResponse, err error) + func (r *ContextService) Update(ctx context.Context, id string, opts ...option.RequestOption) (res *CreateContextResponse, err error) + type CreateContextResponse struct + CipherAlgorithm string + ID string + InitializationVectorSize int64 + JSON struct{ ... } + PublicKey string + UploadURL string + func (r *CreateContextResponse) UnmarshalJSON(data []byte) error + func (r CreateContextResponse) RawJSON() string + type Error = apierror.Error + type Extension struct + CreatedAt time.Time + FileName string + ID string + JSON struct{ ... } + ProjectID string + UpdatedAt time.Time + func (r *Extension) UnmarshalJSON(data []byte) error + func (r Extension) RawJSON() string + type ExtensionNewParams struct + File io.Reader + func (r ExtensionNewParams) MarshalMultipart() (data []byte, contentType string, err error) + type ExtensionService struct + Options []option.RequestOption + func NewExtensionService(opts ...option.RequestOption) (r ExtensionService) + func (r *ExtensionService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error) + func (r *ExtensionService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Extension, err error) + func (r *ExtensionService) New(ctx context.Context, body ExtensionNewParams, opts ...option.RequestOption) (res *Extension, err error) + type Project struct + CreatedAt time.Time + DefaultTimeout int64 + ID string + JSON struct{ ... } + Name string + OwnerID string + UpdatedAt time.Time + func (r *Project) UnmarshalJSON(data []byte) error + func (r Project) RawJSON() string + type ProjectService struct + Options []option.RequestOption + func NewProjectService(opts ...option.RequestOption) (r ProjectService) + func (r *ProjectService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Project, err error) + func (r *ProjectService) List(ctx context.Context, opts ...option.RequestOption) (res *[]Project, err error) + func (r *ProjectService) Usage(ctx context.Context, id string, opts ...option.RequestOption) (res *ProjectUsageResponse, err error) + type ProjectUsageResponse struct + BrowserMinutes int64 + JSON struct{ ... } + ProxyBytes int64 + func (r *ProjectUsageResponse) UnmarshalJSON(data []byte) error + func (r ProjectUsageResponse) RawJSON() string + type Region string + const RegionApSoutheast1 + const RegionEuCentral1 + const RegionUsEast1 + const RegionUsWest2 + type Session struct + AvgCPUUsage int64 + ContextID string + CreatedAt time.Time + EndedAt time.Time + ExpiresAt time.Time + ID string + JSON struct{ ... } + KeepAlive bool + MemoryUsage int64 + ProjectID string + ProxyBytes int64 + Region Region + StartedAt time.Time + Status SessionStatus + UpdatedAt time.Time + func (r *Session) UnmarshalJSON(data []byte) error + func (r Session) RawJSON() string + type SessionDebugResponse struct + DebuggerFullscreenURL string + DebuggerURL string + JSON struct{ ... } + Pages []SessionDebugResponsePage + WsURL string + func (r *SessionDebugResponse) UnmarshalJSON(data []byte) error + func (r SessionDebugResponse) RawJSON() string + type SessionDebugResponsePage struct + DebuggerFullscreenURL string + DebuggerURL string + FaviconURL string + ID string + JSON struct{ ... } + Title string + URL string + func (r *SessionDebugResponsePage) UnmarshalJSON(data []byte) error + func (r SessionDebugResponsePage) RawJSON() string + type SessionListParams struct + Status SessionStatus + func (r SessionListParams) URLQuery() (v url.Values, err error) + type SessionLogsResponse struct + EventID string + FrameID string + JSON struct{ ... } + LoaderID string + Method string + PageID int64 + Request SessionLogsResponseRequest + Response SessionLogsResponseResponse + SessionID string + Timestamp int64 + func (r *SessionLogsResponse) UnmarshalJSON(data []byte) error + func (r SessionLogsResponse) RawJSON() string + type SessionLogsResponseRequest struct + JSON struct{ ... } + Params map[string]any + RawBody string + Timestamp int64 + func (r *SessionLogsResponseRequest) UnmarshalJSON(data []byte) error + func (r SessionLogsResponseRequest) RawJSON() string + type SessionLogsResponseResponse struct + JSON struct{ ... } + RawBody string + Result map[string]any + Timestamp int64 + func (r *SessionLogsResponseResponse) UnmarshalJSON(data []byte) error + func (r SessionLogsResponseResponse) RawJSON() string + type SessionNewParams struct + BrowserSettings SessionNewParamsBrowserSettings + ExtensionID param.Opt[string] + KeepAlive param.Opt[bool] + ProjectID string + Proxies any + Region Region + Timeout param.Opt[int64] + func (r *SessionNewParams) UnmarshalJSON(data []byte) error + func (r SessionNewParams) MarshalJSON() (data []byte, err error) + type SessionNewParamsBrowserSettings struct + BlockAds param.Opt[bool] + Context SessionNewParamsBrowserSettingsContext + ExtensionID param.Opt[string] + Fingerprint SessionNewParamsBrowserSettingsFingerprint + LogSession param.Opt[bool] + RecordSession param.Opt[bool] + SolveCaptchas param.Opt[bool] + Viewport SessionNewParamsBrowserSettingsViewport + func (r *SessionNewParamsBrowserSettings) UnmarshalJSON(data []byte) error + func (r SessionNewParamsBrowserSettings) MarshalJSON() (data []byte, err error) + type SessionNewParamsBrowserSettingsContext struct + ID string + Persist param.Opt[bool] + func (r *SessionNewParamsBrowserSettingsContext) UnmarshalJSON(data []byte) error + func (r SessionNewParamsBrowserSettingsContext) MarshalJSON() (data []byte, err error) + type SessionNewParamsBrowserSettingsFingerprint struct + Browsers []string + Devices []string + HTTPVersion float64 + Locales []string + OperatingSystems []string + Screen SessionNewParamsBrowserSettingsFingerprintScreen + func (r *SessionNewParamsBrowserSettingsFingerprint) UnmarshalJSON(data []byte) error + func (r SessionNewParamsBrowserSettingsFingerprint) MarshalJSON() (data []byte, err error) + type SessionNewParamsBrowserSettingsFingerprintScreen struct + MaxHeight param.Opt[int64] + MaxWidth param.Opt[int64] + MinHeight param.Opt[int64] + MinWidth param.Opt[int64] + func (r *SessionNewParamsBrowserSettingsFingerprintScreen) UnmarshalJSON(data []byte) error + func (r SessionNewParamsBrowserSettingsFingerprintScreen) MarshalJSON() (data []byte, err error) + type SessionNewParamsBrowserSettingsViewport struct + Height param.Opt[int64] + Width param.Opt[int64] + func (r *SessionNewParamsBrowserSettingsViewport) UnmarshalJSON(data []byte) error + func (r SessionNewParamsBrowserSettingsViewport) MarshalJSON() (data []byte, err error) + type SessionNewResponse struct + AvgCPUUsage int64 + ConnectURL string + ContextID string + CreatedAt time.Time + EndedAt time.Time + ExpiresAt time.Time + ID string + JSON struct{ ... } + KeepAlive bool + MemoryUsage int64 + ProjectID string + ProxyBytes int64 + Region Region + SeleniumRemoteURL string + SigningKey string + StartedAt time.Time + Status SessionStatus + UpdatedAt time.Time + func (r *SessionNewResponse) UnmarshalJSON(data []byte) error + func (r SessionNewResponse) RawJSON() string + type SessionNewUploadsParams struct + File io.Reader + func (r SessionNewUploadsParams) MarshalMultipart() (data []byte, contentType string, err error) + type SessionNewUploadsResponse struct + JSON struct{ ... } + Message string + func (r *SessionNewUploadsResponse) UnmarshalJSON(data []byte) error + func (r SessionNewUploadsResponse) RawJSON() string + type SessionRecordingResponse struct + Data map[string]any + ID string + JSON struct{ ... } + SessionID string + Timestamp int64 + Type int64 + func (r *SessionRecordingResponse) UnmarshalJSON(data []byte) error + func (r SessionRecordingResponse) RawJSON() string + type SessionService struct + Options []option.RequestOption + func NewSessionService(opts ...option.RequestOption) (r SessionService) + func (r *SessionService) Debug(ctx context.Context, id string, opts ...option.RequestOption) (res *SessionDebugResponse, err error) + func (r *SessionService) Downloads(ctx context.Context, id string, opts ...option.RequestOption) (res *http.Response, err error) + func (r *SessionService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Session, err error) + func (r *SessionService) List(ctx context.Context, query SessionListParams, opts ...option.RequestOption) (res *[]Session, err error) + func (r *SessionService) Logs(ctx context.Context, id string, opts ...option.RequestOption) (res *[]SessionLogsResponse, err error) + func (r *SessionService) New(ctx context.Context, body SessionNewParams, opts ...option.RequestOption) (res *SessionNewResponse, err error) + func (r *SessionService) NewUploads(ctx context.Context, id string, body SessionNewUploadsParams, ...) (res *SessionNewUploadsResponse, err error) + func (r *SessionService) Recording(ctx context.Context, id string, opts ...option.RequestOption) (res *[]SessionRecordingResponse, err error) + func (r *SessionService) Update(ctx context.Context, id string, body SessionUpdateParams, ...) (res *Session, err error) + type SessionStatus string + const SessionStatusCompleted + const SessionStatusError + const SessionStatusRunning + const SessionStatusTimedOut + type SessionUpdateParams struct + ProjectID string + Status SessionUpdateParamsStatus + func (r *SessionUpdateParams) UnmarshalJSON(data []byte) error + func (r SessionUpdateParams) MarshalJSON() (data []byte, err error) + type SessionUpdateParamsStatus string + const SessionUpdateParamsStatusRequestRelease