Documentation
¶
Index ¶
- Variables
- func Bool(b bool) *bool
- func Byte(b byte) *byte
- func Bytes(b []byte) *[]byte
- func Complex64(c complex64) *complex64
- func Complex128(c complex128) *complex128
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int8(i int8) *int8
- func Int16(i int16) *int16
- func Int32(i int32) *int32
- func Int64(i int64) *int64
- func MustParseDate(date string) time.Time
- func MustParseDateTime(datetime string) time.Time
- func Rune(r rune) *rune
- func String(s string) *string
- func Time(t time.Time) *time.Time
- func UUID(u uuid.UUID) *uuid.UUID
- func Uint(u uint) *uint
- func Uint8(u uint8) *uint8
- func Uint16(u uint16) *uint16
- func Uint32(u uint32) *uint32
- func Uint64(u uint64) *uint64
- func Uintptr(u uintptr) *uintptr
- type AccountResponse
- func (a *AccountResponse) GetData() *AccountResponseData
- func (a *AccountResponse) GetExtraProperties() map[string]interface{}
- func (a *AccountResponse) GetSuccess() bool
- func (a *AccountResponse) MarshalJSON() ([]byte, error)
- func (a *AccountResponse) SetData(data *AccountResponseData)
- func (a *AccountResponse) SetSuccess(success bool)
- func (a *AccountResponse) String() string
- func (a *AccountResponse) UnmarshalJSON(data []byte) error
- type AccountResponseData
- func (a *AccountResponseData) GetCreatedAt() time.Time
- func (a *AccountResponseData) GetCredits() int
- func (a *AccountResponseData) GetEmail() string
- func (a *AccountResponseData) GetExtraProperties() map[string]interface{}
- func (a *AccountResponseData) GetID() string
- func (a *AccountResponseData) GetLifetimeSpendUsd() float64
- func (a *AccountResponseData) GetPlan() *AccountResponseDataPlan
- func (a *AccountResponseData) GetQueue() *AccountResponseDataQueue
- func (a *AccountResponseData) MarshalJSON() ([]byte, error)
- func (a *AccountResponseData) SetCreatedAt(createdAt time.Time)
- func (a *AccountResponseData) SetCredits(credits int)
- func (a *AccountResponseData) SetEmail(email string)
- func (a *AccountResponseData) SetID(id string)
- func (a *AccountResponseData) SetLifetimeSpendUsd(lifetimeSpendUsd float64)
- func (a *AccountResponseData) SetPlan(plan *AccountResponseDataPlan)
- func (a *AccountResponseData) SetQueue(queue *AccountResponseDataQueue)
- func (a *AccountResponseData) String() string
- func (a *AccountResponseData) UnmarshalJSON(data []byte) error
- type AccountResponseDataPlan
- func (a *AccountResponseDataPlan) GetConcurrency() int
- func (a *AccountResponseDataPlan) GetExtraProperties() map[string]interface{}
- func (a *AccountResponseDataPlan) GetID() string
- func (a *AccountResponseDataPlan) GetName() string
- func (a *AccountResponseDataPlan) GetQueueLimit() int
- func (a *AccountResponseDataPlan) GetRateLimitPerMinute() int
- func (a *AccountResponseDataPlan) MarshalJSON() ([]byte, error)
- func (a *AccountResponseDataPlan) SetConcurrency(concurrency int)
- func (a *AccountResponseDataPlan) SetID(id string)
- func (a *AccountResponseDataPlan) SetName(name string)
- func (a *AccountResponseDataPlan) SetQueueLimit(queueLimit int)
- func (a *AccountResponseDataPlan) SetRateLimitPerMinute(rateLimitPerMinute int)
- func (a *AccountResponseDataPlan) String() string
- func (a *AccountResponseDataPlan) UnmarshalJSON(data []byte) error
- type AccountResponseDataQueue
- func (a *AccountResponseDataQueue) GetActive() int
- func (a *AccountResponseDataQueue) GetExtraProperties() map[string]interface{}
- func (a *AccountResponseDataQueue) GetWaiting() int
- func (a *AccountResponseDataQueue) MarshalJSON() ([]byte, error)
- func (a *AccountResponseDataQueue) SetActive(active int)
- func (a *AccountResponseDataQueue) SetWaiting(waiting int)
- func (a *AccountResponseDataQueue) String() string
- func (a *AccountResponseDataQueue) UnmarshalJSON(data []byte) error
- type ActionDto
- func (a *ActionDto) GetAmount() *float64
- func (a *ActionDto) GetDirection() *ActionDtoDirection
- func (a *ActionDto) GetExtraProperties() map[string]interface{}
- func (a *ActionDto) GetKey() *string
- func (a *ActionDto) GetMilliseconds() *float64
- func (a *ActionDto) GetSelector() *string
- func (a *ActionDto) GetText() *string
- func (a *ActionDto) GetType() ActionDtoType
- func (a *ActionDto) MarshalJSON() ([]byte, error)
- func (a *ActionDto) SetAmount(amount *float64)
- func (a *ActionDto) SetDirection(direction *ActionDtoDirection)
- func (a *ActionDto) SetKey(key *string)
- func (a *ActionDto) SetMilliseconds(milliseconds *float64)
- func (a *ActionDto) SetSelector(selector *string)
- func (a *ActionDto) SetText(text *string)
- func (a *ActionDto) SetType(type_ ActionDtoType)
- func (a *ActionDto) String() string
- func (a *ActionDto) UnmarshalJSON(data []byte) error
- type ActionDtoDirection
- type ActionDtoType
- type AgentConfigDto
- func (a *AgentConfigDto) GetExtraProperties() map[string]interface{}
- func (a *AgentConfigDto) GetMode() *AgentConfigDtoMode
- func (a *AgentConfigDto) GetModel() *string
- func (a *AgentConfigDto) MarshalJSON() ([]byte, error)
- func (a *AgentConfigDto) SetMode(mode *AgentConfigDtoMode)
- func (a *AgentConfigDto) SetModel(model *string)
- func (a *AgentConfigDto) String() string
- func (a *AgentConfigDto) UnmarshalJSON(data []byte) error
- type AgentConfigDtoMode
- type BadRequestError
- type BrandAsset
- func (b *BrandAsset) GetExtraProperties() map[string]interface{}
- func (b *BrandAsset) GetHeight() *int
- func (b *BrandAsset) GetTheme() *string
- func (b *BrandAsset) GetType() string
- func (b *BrandAsset) GetURL() string
- func (b *BrandAsset) GetWidth() *int
- func (b *BrandAsset) MarshalJSON() ([]byte, error)
- func (b *BrandAsset) SetHeight(height *int)
- func (b *BrandAsset) SetTheme(theme *string)
- func (b *BrandAsset) SetType(type_ string)
- func (b *BrandAsset) SetURL(url string)
- func (b *BrandAsset) SetWidth(width *int)
- func (b *BrandAsset) String() string
- func (b *BrandAsset) UnmarshalJSON(data []byte) error
- type BrandComponentStyle
- func (b *BrandComponentStyle) GetBackground() *string
- func (b *BrandComponentStyle) GetBorderColor() *string
- func (b *BrandComponentStyle) GetBorderRadius() *string
- func (b *BrandComponentStyle) GetExtraProperties() map[string]interface{}
- func (b *BrandComponentStyle) GetShadow() *string
- func (b *BrandComponentStyle) GetTextColor() *string
- func (b *BrandComponentStyle) MarshalJSON() ([]byte, error)
- func (b *BrandComponentStyle) SetBackground(background *string)
- func (b *BrandComponentStyle) SetBorderColor(borderColor *string)
- func (b *BrandComponentStyle) SetBorderRadius(borderRadius *string)
- func (b *BrandComponentStyle) SetShadow(shadow *string)
- func (b *BrandComponentStyle) SetTextColor(textColor *string)
- func (b *BrandComponentStyle) String() string
- func (b *BrandComponentStyle) UnmarshalJSON(data []byte) error
- type BrandDesignSystem
- func (b *BrandDesignSystem) GetColorScheme() BrandDesignSystemColorScheme
- func (b *BrandDesignSystem) GetColors() *BrandDesignSystemColors
- func (b *BrandDesignSystem) GetComponents() *BrandDesignSystemComponents
- func (b *BrandDesignSystem) GetExtraProperties() map[string]interface{}
- func (b *BrandDesignSystem) GetImages() *BrandDesignSystemImages
- func (b *BrandDesignSystem) GetSpacing() *BrandDesignSystemSpacing
- func (b *BrandDesignSystem) GetTypography() *BrandDesignSystemTypography
- func (b *BrandDesignSystem) MarshalJSON() ([]byte, error)
- func (b *BrandDesignSystem) SetColorScheme(colorScheme BrandDesignSystemColorScheme)
- func (b *BrandDesignSystem) SetColors(colors *BrandDesignSystemColors)
- func (b *BrandDesignSystem) SetComponents(components *BrandDesignSystemComponents)
- func (b *BrandDesignSystem) SetImages(images *BrandDesignSystemImages)
- func (b *BrandDesignSystem) SetSpacing(spacing *BrandDesignSystemSpacing)
- func (b *BrandDesignSystem) SetTypography(typography *BrandDesignSystemTypography)
- func (b *BrandDesignSystem) String() string
- func (b *BrandDesignSystem) UnmarshalJSON(data []byte) error
- type BrandDesignSystemColorScheme
- type BrandDesignSystemColors
- func (b *BrandDesignSystemColors) GetAccent() *string
- func (b *BrandDesignSystemColors) GetBackground() *string
- func (b *BrandDesignSystemColors) GetExtraProperties() map[string]interface{}
- func (b *BrandDesignSystemColors) GetLink() *string
- func (b *BrandDesignSystemColors) GetPrimary() *string
- func (b *BrandDesignSystemColors) GetSecondary() *string
- func (b *BrandDesignSystemColors) GetTextPrimary() *string
- func (b *BrandDesignSystemColors) MarshalJSON() ([]byte, error)
- func (b *BrandDesignSystemColors) SetAccent(accent *string)
- func (b *BrandDesignSystemColors) SetBackground(background *string)
- func (b *BrandDesignSystemColors) SetLink(link *string)
- func (b *BrandDesignSystemColors) SetPrimary(primary *string)
- func (b *BrandDesignSystemColors) SetSecondary(secondary *string)
- func (b *BrandDesignSystemColors) SetTextPrimary(textPrimary *string)
- func (b *BrandDesignSystemColors) String() string
- func (b *BrandDesignSystemColors) UnmarshalJSON(data []byte) error
- type BrandDesignSystemComponents
- func (b *BrandDesignSystemComponents) GetButtonPrimary() *BrandComponentStyle
- func (b *BrandDesignSystemComponents) GetButtonSecondary() *BrandComponentStyle
- func (b *BrandDesignSystemComponents) GetExtraProperties() map[string]interface{}
- func (b *BrandDesignSystemComponents) GetInput() *BrandComponentStyle
- func (b *BrandDesignSystemComponents) MarshalJSON() ([]byte, error)
- func (b *BrandDesignSystemComponents) SetButtonPrimary(buttonPrimary *BrandComponentStyle)
- func (b *BrandDesignSystemComponents) SetButtonSecondary(buttonSecondary *BrandComponentStyle)
- func (b *BrandDesignSystemComponents) SetInput(input *BrandComponentStyle)
- func (b *BrandDesignSystemComponents) String() string
- func (b *BrandDesignSystemComponents) UnmarshalJSON(data []byte) error
- type BrandDesignSystemImages
- func (b *BrandDesignSystemImages) GetExtraProperties() map[string]interface{}
- func (b *BrandDesignSystemImages) GetFavicon() *string
- func (b *BrandDesignSystemImages) GetLogo() *string
- func (b *BrandDesignSystemImages) GetOgImage() *string
- func (b *BrandDesignSystemImages) MarshalJSON() ([]byte, error)
- func (b *BrandDesignSystemImages) SetFavicon(favicon *string)
- func (b *BrandDesignSystemImages) SetLogo(logo *string)
- func (b *BrandDesignSystemImages) SetOgImage(ogImage *string)
- func (b *BrandDesignSystemImages) String() string
- func (b *BrandDesignSystemImages) UnmarshalJSON(data []byte) error
- type BrandDesignSystemSpacing
- func (b *BrandDesignSystemSpacing) GetBaseUnit() float64
- func (b *BrandDesignSystemSpacing) GetBorderRadius() *string
- func (b *BrandDesignSystemSpacing) GetExtraProperties() map[string]interface{}
- func (b *BrandDesignSystemSpacing) MarshalJSON() ([]byte, error)
- func (b *BrandDesignSystemSpacing) SetBaseUnit(baseUnit float64)
- func (b *BrandDesignSystemSpacing) SetBorderRadius(borderRadius *string)
- func (b *BrandDesignSystemSpacing) String() string
- func (b *BrandDesignSystemSpacing) UnmarshalJSON(data []byte) error
- type BrandDesignSystemTypography
- func (b *BrandDesignSystemTypography) GetExtraProperties() map[string]interface{}
- func (b *BrandDesignSystemTypography) GetFontFamilies() *BrandDesignSystemTypographyFontFamilies
- func (b *BrandDesignSystemTypography) GetFontSizes() *BrandDesignSystemTypographyFontSizes
- func (b *BrandDesignSystemTypography) GetFontStacks() *BrandDesignSystemTypographyFontStacks
- func (b *BrandDesignSystemTypography) MarshalJSON() ([]byte, error)
- func (b *BrandDesignSystemTypography) SetFontFamilies(fontFamilies *BrandDesignSystemTypographyFontFamilies)
- func (b *BrandDesignSystemTypography) SetFontSizes(fontSizes *BrandDesignSystemTypographyFontSizes)
- func (b *BrandDesignSystemTypography) SetFontStacks(fontStacks *BrandDesignSystemTypographyFontStacks)
- func (b *BrandDesignSystemTypography) String() string
- func (b *BrandDesignSystemTypography) UnmarshalJSON(data []byte) error
- type BrandDesignSystemTypographyFontFamilies
- func (b *BrandDesignSystemTypographyFontFamilies) GetExtraProperties() map[string]interface{}
- func (b *BrandDesignSystemTypographyFontFamilies) GetHeading() *string
- func (b *BrandDesignSystemTypographyFontFamilies) GetPrimary() *string
- func (b *BrandDesignSystemTypographyFontFamilies) MarshalJSON() ([]byte, error)
- func (b *BrandDesignSystemTypographyFontFamilies) SetHeading(heading *string)
- func (b *BrandDesignSystemTypographyFontFamilies) SetPrimary(primary *string)
- func (b *BrandDesignSystemTypographyFontFamilies) String() string
- func (b *BrandDesignSystemTypographyFontFamilies) UnmarshalJSON(data []byte) error
- type BrandDesignSystemTypographyFontSizes
- func (b *BrandDesignSystemTypographyFontSizes) GetBody() *string
- func (b *BrandDesignSystemTypographyFontSizes) GetExtraProperties() map[string]interface{}
- func (b *BrandDesignSystemTypographyFontSizes) GetH1() *string
- func (b *BrandDesignSystemTypographyFontSizes) GetH2() *string
- func (b *BrandDesignSystemTypographyFontSizes) MarshalJSON() ([]byte, error)
- func (b *BrandDesignSystemTypographyFontSizes) SetBody(body *string)
- func (b *BrandDesignSystemTypographyFontSizes) SetH1(h1 *string)
- func (b *BrandDesignSystemTypographyFontSizes) SetH2(h2 *string)
- func (b *BrandDesignSystemTypographyFontSizes) String() string
- func (b *BrandDesignSystemTypographyFontSizes) UnmarshalJSON(data []byte) error
- type BrandDesignSystemTypographyFontStacks
- func (b *BrandDesignSystemTypographyFontStacks) GetBody() []string
- func (b *BrandDesignSystemTypographyFontStacks) GetExtraProperties() map[string]interface{}
- func (b *BrandDesignSystemTypographyFontStacks) GetHeading() []string
- func (b *BrandDesignSystemTypographyFontStacks) GetParagraph() []string
- func (b *BrandDesignSystemTypographyFontStacks) MarshalJSON() ([]byte, error)
- func (b *BrandDesignSystemTypographyFontStacks) SetBody(body []string)
- func (b *BrandDesignSystemTypographyFontStacks) SetHeading(heading []string)
- func (b *BrandDesignSystemTypographyFontStacks) SetParagraph(paragraph []string)
- func (b *BrandDesignSystemTypographyFontStacks) String() string
- func (b *BrandDesignSystemTypographyFontStacks) UnmarshalJSON(data []byte) error
- type BrandDto
- type BrandProfile
- func (b *BrandProfile) GetBranding() *BrandDesignSystem
- func (b *BrandProfile) GetColors() []*BrandProfileColorsItem
- func (b *BrandProfile) GetDescription() *string
- func (b *BrandProfile) GetDomain() string
- func (b *BrandProfile) GetExtraProperties() map[string]interface{}
- func (b *BrandProfile) GetFonts() []*BrandProfileFontsItem
- func (b *BrandProfile) GetImages() []*BrandAsset
- func (b *BrandProfile) GetLanguage() *string
- func (b *BrandProfile) GetLogos() []*BrandAsset
- func (b *BrandProfile) GetName() string
- func (b *BrandProfile) GetSocials() []*BrandProfileSocialsItem
- func (b *BrandProfile) GetTagline() *string
- func (b *BrandProfile) MarshalJSON() ([]byte, error)
- func (b *BrandProfile) SetBranding(branding *BrandDesignSystem)
- func (b *BrandProfile) SetColors(colors []*BrandProfileColorsItem)
- func (b *BrandProfile) SetDescription(description *string)
- func (b *BrandProfile) SetDomain(domain string)
- func (b *BrandProfile) SetFonts(fonts []*BrandProfileFontsItem)
- func (b *BrandProfile) SetImages(images []*BrandAsset)
- func (b *BrandProfile) SetLanguage(language *string)
- func (b *BrandProfile) SetLogos(logos []*BrandAsset)
- func (b *BrandProfile) SetName(name string)
- func (b *BrandProfile) SetSocials(socials []*BrandProfileSocialsItem)
- func (b *BrandProfile) SetTagline(tagline *string)
- func (b *BrandProfile) String() string
- func (b *BrandProfile) UnmarshalJSON(data []byte) error
- type BrandProfileColorsItem
- func (b *BrandProfileColorsItem) GetExtraProperties() map[string]interface{}
- func (b *BrandProfileColorsItem) GetHex() string
- func (b *BrandProfileColorsItem) GetName() *string
- func (b *BrandProfileColorsItem) MarshalJSON() ([]byte, error)
- func (b *BrandProfileColorsItem) SetHex(hex string)
- func (b *BrandProfileColorsItem) SetName(name *string)
- func (b *BrandProfileColorsItem) String() string
- func (b *BrandProfileColorsItem) UnmarshalJSON(data []byte) error
- type BrandProfileFontsItem
- func (b *BrandProfileFontsItem) GetExtraProperties() map[string]interface{}
- func (b *BrandProfileFontsItem) GetFamily() string
- func (b *BrandProfileFontsItem) GetWeights() []string
- func (b *BrandProfileFontsItem) MarshalJSON() ([]byte, error)
- func (b *BrandProfileFontsItem) SetFamily(family string)
- func (b *BrandProfileFontsItem) SetWeights(weights []string)
- func (b *BrandProfileFontsItem) String() string
- func (b *BrandProfileFontsItem) UnmarshalJSON(data []byte) error
- type BrandProfileSocialsItem
- func (b *BrandProfileSocialsItem) GetExtraProperties() map[string]interface{}
- func (b *BrandProfileSocialsItem) GetNetwork() string
- func (b *BrandProfileSocialsItem) GetURL() string
- func (b *BrandProfileSocialsItem) MarshalJSON() ([]byte, error)
- func (b *BrandProfileSocialsItem) SetNetwork(network string)
- func (b *BrandProfileSocialsItem) SetURL(url string)
- func (b *BrandProfileSocialsItem) String() string
- func (b *BrandProfileSocialsItem) UnmarshalJSON(data []byte) error
- type BrandResponse
- func (b *BrandResponse) GetData() *BrandResponseData
- func (b *BrandResponse) GetExtraProperties() map[string]interface{}
- func (b *BrandResponse) GetSuccess() bool
- func (b *BrandResponse) MarshalJSON() ([]byte, error)
- func (b *BrandResponse) SetData(data *BrandResponseData)
- func (b *BrandResponse) SetSuccess(success bool)
- func (b *BrandResponse) String() string
- func (b *BrandResponse) UnmarshalJSON(data []byte) error
- type BrandResponseData
- func (b *BrandResponseData) GetBrand() *BrandProfile
- func (b *BrandResponseData) GetExtraProperties() map[string]interface{}
- func (b *BrandResponseData) GetMeta() *BrandResponseDataMeta
- func (b *BrandResponseData) MarshalJSON() ([]byte, error)
- func (b *BrandResponseData) SetBrand(brand *BrandProfile)
- func (b *BrandResponseData) SetMeta(meta *BrandResponseDataMeta)
- func (b *BrandResponseData) String() string
- func (b *BrandResponseData) UnmarshalJSON(data []byte) error
- type BrandResponseDataMeta
- func (b *BrandResponseDataMeta) GetCached() bool
- func (b *BrandResponseDataMeta) GetCreditsUsed() int
- func (b *BrandResponseDataMeta) GetExtraProperties() map[string]interface{}
- func (b *BrandResponseDataMeta) GetFetchedAt() time.Time
- func (b *BrandResponseDataMeta) GetSourceURL() string
- func (b *BrandResponseDataMeta) MarshalJSON() ([]byte, error)
- func (b *BrandResponseDataMeta) SetCached(cached bool)
- func (b *BrandResponseDataMeta) SetCreditsUsed(creditsUsed int)
- func (b *BrandResponseDataMeta) SetFetchedAt(fetchedAt time.Time)
- func (b *BrandResponseDataMeta) SetSourceURL(sourceURL string)
- func (b *BrandResponseDataMeta) String() string
- func (b *BrandResponseDataMeta) UnmarshalJSON(data []byte) error
- type CancelJobResponse
- func (c *CancelJobResponse) GetData() *CancelJobResponseData
- func (c *CancelJobResponse) GetExtraProperties() map[string]interface{}
- func (c *CancelJobResponse) GetSuccess() bool
- func (c *CancelJobResponse) MarshalJSON() ([]byte, error)
- func (c *CancelJobResponse) SetData(data *CancelJobResponseData)
- func (c *CancelJobResponse) SetSuccess(success bool)
- func (c *CancelJobResponse) String() string
- func (c *CancelJobResponse) UnmarshalJSON(data []byte) error
- type CancelJobResponseData
- func (c *CancelJobResponseData) GetExtraProperties() map[string]interface{}
- func (c *CancelJobResponseData) GetID() string
- func (c *CancelJobResponseData) GetStatus() string
- func (c *CancelJobResponseData) MarshalJSON() ([]byte, error)
- func (c *CancelJobResponseData) SetID(id string)
- func (c *CancelJobResponseData) SetStatus(status string)
- func (c *CancelJobResponseData) String() string
- func (c *CancelJobResponseData) UnmarshalJSON(data []byte) error
- type CancelJobsRequest
- type ChangeTrackingFormatDto
- func (c *ChangeTrackingFormatDto) GetExtraProperties() map[string]interface{}
- func (c *ChangeTrackingFormatDto) GetModes() []string
- func (c *ChangeTrackingFormatDto) GetSchema() map[string]any
- func (c *ChangeTrackingFormatDto) GetTag() *string
- func (c *ChangeTrackingFormatDto) GetType() ChangeTrackingFormatDtoType
- func (c *ChangeTrackingFormatDto) MarshalJSON() ([]byte, error)
- func (c *ChangeTrackingFormatDto) SetModes(modes []string)
- func (c *ChangeTrackingFormatDto) SetSchema(schema map[string]any)
- func (c *ChangeTrackingFormatDto) SetTag(tag *string)
- func (c *ChangeTrackingFormatDto) SetType(type_ ChangeTrackingFormatDtoType)
- func (c *ChangeTrackingFormatDto) String() string
- func (c *ChangeTrackingFormatDto) UnmarshalJSON(data []byte) error
- type ChangeTrackingFormatDtoType
- type CrawlDto
- func (c *CrawlDto) MarshalJSON() ([]byte, error)
- func (c *CrawlDto) SetAllowExternalLinks(allowExternalLinks *bool)
- func (c *CrawlDto) SetAllowSubdomains(allowSubdomains *bool)
- func (c *CrawlDto) SetCrawlEntireDomain(crawlEntireDomain *bool)
- func (c *CrawlDto) SetDeduplicateSimilarUrLs(deduplicateSimilarUrLs *bool)
- func (c *CrawlDto) SetDelay(delay *float64)
- func (c *CrawlDto) SetExcludePaths(excludePaths []string)
- func (c *CrawlDto) SetIgnoreQueryParameters(ignoreQueryParameters *bool)
- func (c *CrawlDto) SetIncludePaths(includePaths []string)
- func (c *CrawlDto) SetLimit(limit *float64)
- func (c *CrawlDto) SetMaxConcurrency(maxConcurrency *float64)
- func (c *CrawlDto) SetMaxDiscoveryDepth(maxDiscoveryDepth *float64)
- func (c *CrawlDto) SetPrompt(prompt *string)
- func (c *CrawlDto) SetScrapeOptions(scrapeOptions map[string]any)
- func (c *CrawlDto) SetSitemap(sitemap *CrawlDtoSitemap)
- func (c *CrawlDto) SetURL(url string)
- func (c *CrawlDto) SetWebhook(webhook *WebhookConfigDto)
- func (c *CrawlDto) SetZeroDataRetention(zeroDataRetention *bool)
- func (c *CrawlDto) UnmarshalJSON(data []byte) error
- type CrawlDtoSitemap
- type CreateWebhookDto
- type DeleteWebhooksRequest
- type ExtractDto
- func (e *ExtractDto) MarshalJSON() ([]byte, error)
- func (e *ExtractDto) SetAgent(agent *AgentConfigDto)
- func (e *ExtractDto) SetEnableWebSearch(enableWebSearch *bool)
- func (e *ExtractDto) SetIgnoreInvalidUrLs(ignoreInvalidUrLs *bool)
- func (e *ExtractDto) SetIgnoreSitemap(ignoreSitemap *bool)
- func (e *ExtractDto) SetIncludeSubdomains(includeSubdomains *bool)
- func (e *ExtractDto) SetPrompt(prompt string)
- func (e *ExtractDto) SetSchema(schema map[string]any)
- func (e *ExtractDto) SetScrapeOptions(scrapeOptions map[string]any)
- func (e *ExtractDto) SetShowSources(showSources *bool)
- func (e *ExtractDto) SetURLs(urls []string)
- func (e *ExtractDto) SetWebhook(webhook *ExtractWebhookConfigDto)
- func (e *ExtractDto) UnmarshalJSON(data []byte) error
- type ExtractWebhookConfigDto
- func (e *ExtractWebhookConfigDto) GetEvents() []string
- func (e *ExtractWebhookConfigDto) GetExtraProperties() map[string]interface{}
- func (e *ExtractWebhookConfigDto) GetMetadata() map[string]any
- func (e *ExtractWebhookConfigDto) GetSecret() *string
- func (e *ExtractWebhookConfigDto) GetURL() string
- func (e *ExtractWebhookConfigDto) MarshalJSON() ([]byte, error)
- func (e *ExtractWebhookConfigDto) SetEvents(events []string)
- func (e *ExtractWebhookConfigDto) SetMetadata(metadata map[string]any)
- func (e *ExtractWebhookConfigDto) SetSecret(secret *string)
- func (e *ExtractWebhookConfigDto) SetURL(url string)
- func (e *ExtractWebhookConfigDto) String() string
- func (e *ExtractWebhookConfigDto) UnmarshalJSON(data []byte) error
- type FileParam
- type FileParamOption
- type GetJobsRequest
- type GetWebhooksRequest
- type JSONFormatDto
- func (j *JSONFormatDto) GetExtraProperties() map[string]interface{}
- func (j *JSONFormatDto) GetPrompt() *string
- func (j *JSONFormatDto) GetSchema() map[string]any
- func (j *JSONFormatDto) GetType() JSONFormatDtoType
- func (j *JSONFormatDto) MarshalJSON() ([]byte, error)
- func (j *JSONFormatDto) SetPrompt(prompt *string)
- func (j *JSONFormatDto) SetSchema(schema map[string]any)
- func (j *JSONFormatDto) SetType(type_ JSONFormatDtoType)
- func (j *JSONFormatDto) String() string
- func (j *JSONFormatDto) UnmarshalJSON(data []byte) error
- type JSONFormatDtoType
- type JobCreatedResponse
- func (j *JobCreatedResponse) GetExtraProperties() map[string]interface{}
- func (j *JobCreatedResponse) GetID() string
- func (j *JobCreatedResponse) GetInvalidUrLs() []string
- func (j *JobCreatedResponse) GetSuccess() bool
- func (j *JobCreatedResponse) GetURL() string
- func (j *JobCreatedResponse) MarshalJSON() ([]byte, error)
- func (j *JobCreatedResponse) SetID(id string)
- func (j *JobCreatedResponse) SetInvalidUrLs(invalidUrLs []string)
- func (j *JobCreatedResponse) SetSuccess(success bool)
- func (j *JobCreatedResponse) SetURL(url string)
- func (j *JobCreatedResponse) String() string
- func (j *JobCreatedResponse) UnmarshalJSON(data []byte) error
- type JobResponse
- func (j *JobResponse) GetData() *JobResponseData
- func (j *JobResponse) GetExtraProperties() map[string]interface{}
- func (j *JobResponse) GetSuccess() bool
- func (j *JobResponse) MarshalJSON() ([]byte, error)
- func (j *JobResponse) SetData(data *JobResponseData)
- func (j *JobResponse) SetSuccess(success bool)
- func (j *JobResponse) String() string
- func (j *JobResponse) UnmarshalJSON(data []byte) error
- type JobResponseData
- func (j *JobResponseData) GetCompleted() *int
- func (j *JobResponseData) GetCompletedAt() *time.Time
- func (j *JobResponseData) GetCreatedAt() time.Time
- func (j *JobResponseData) GetCreditsUsed() int
- func (j *JobResponseData) GetError() *string
- func (j *JobResponseData) GetErrors() []*JobResponseDataErrorsItem
- func (j *JobResponseData) GetExtraProperties() map[string]interface{}
- func (j *JobResponseData) GetFailed() *int
- func (j *JobResponseData) GetID() string
- func (j *JobResponseData) GetResult() any
- func (j *JobResponseData) GetResultPagination() *Pagination
- func (j *JobResponseData) GetResults() []map[string]any
- func (j *JobResponseData) GetStartedAt() *time.Time
- func (j *JobResponseData) GetStatus() string
- func (j *JobResponseData) GetTotal() int
- func (j *JobResponseData) GetType() JobSummaryType
- func (j *JobResponseData) MarshalJSON() ([]byte, error)
- func (j *JobResponseData) SetCompleted(completed *int)
- func (j *JobResponseData) SetCompletedAt(completedAt *time.Time)
- func (j *JobResponseData) SetCreatedAt(createdAt time.Time)
- func (j *JobResponseData) SetCreditsUsed(creditsUsed int)
- func (j *JobResponseData) SetError(error_ *string)
- func (j *JobResponseData) SetErrors(errors []*JobResponseDataErrorsItem)
- func (j *JobResponseData) SetFailed(failed *int)
- func (j *JobResponseData) SetID(id string)
- func (j *JobResponseData) SetResult(result any)
- func (j *JobResponseData) SetResultPagination(resultPagination *Pagination)
- func (j *JobResponseData) SetResults(results []map[string]any)
- func (j *JobResponseData) SetStartedAt(startedAt *time.Time)
- func (j *JobResponseData) SetStatus(status string)
- func (j *JobResponseData) SetTotal(total int)
- func (j *JobResponseData) SetType(type_ JobSummaryType)
- func (j *JobResponseData) String() string
- func (j *JobResponseData) UnmarshalJSON(data []byte) error
- type JobResponseDataErrorsItem
- func (j *JobResponseDataErrorsItem) GetError() *string
- func (j *JobResponseDataErrorsItem) GetExtraProperties() map[string]interface{}
- func (j *JobResponseDataErrorsItem) GetURL() *string
- func (j *JobResponseDataErrorsItem) MarshalJSON() ([]byte, error)
- func (j *JobResponseDataErrorsItem) SetError(error_ *string)
- func (j *JobResponseDataErrorsItem) SetURL(url *string)
- func (j *JobResponseDataErrorsItem) String() string
- func (j *JobResponseDataErrorsItem) UnmarshalJSON(data []byte) error
- type JobSummary
- func (j *JobSummary) GetCompleted() *int
- func (j *JobSummary) GetCompletedAt() *time.Time
- func (j *JobSummary) GetCreatedAt() time.Time
- func (j *JobSummary) GetCreditsUsed() int
- func (j *JobSummary) GetError() *string
- func (j *JobSummary) GetExtraProperties() map[string]interface{}
- func (j *JobSummary) GetFailed() *int
- func (j *JobSummary) GetID() string
- func (j *JobSummary) GetStartedAt() *time.Time
- func (j *JobSummary) GetStatus() string
- func (j *JobSummary) GetTotal() int
- func (j *JobSummary) GetType() JobSummaryType
- func (j *JobSummary) MarshalJSON() ([]byte, error)
- func (j *JobSummary) SetCompleted(completed *int)
- func (j *JobSummary) SetCompletedAt(completedAt *time.Time)
- func (j *JobSummary) SetCreatedAt(createdAt time.Time)
- func (j *JobSummary) SetCreditsUsed(creditsUsed int)
- func (j *JobSummary) SetError(error_ *string)
- func (j *JobSummary) SetFailed(failed *int)
- func (j *JobSummary) SetID(id string)
- func (j *JobSummary) SetStartedAt(startedAt *time.Time)
- func (j *JobSummary) SetStatus(status string)
- func (j *JobSummary) SetTotal(total int)
- func (j *JobSummary) SetType(type_ JobSummaryType)
- func (j *JobSummary) String() string
- func (j *JobSummary) UnmarshalJSON(data []byte) error
- type JobSummaryType
- type ListJobsRequest
- type ListJobsRequestStatus
- type ListJobsRequestType
- type ListJobsResponse
- func (l *ListJobsResponse) GetData() *ListJobsResponseData
- func (l *ListJobsResponse) GetExtraProperties() map[string]interface{}
- func (l *ListJobsResponse) GetSuccess() bool
- func (l *ListJobsResponse) MarshalJSON() ([]byte, error)
- func (l *ListJobsResponse) SetData(data *ListJobsResponseData)
- func (l *ListJobsResponse) SetSuccess(success bool)
- func (l *ListJobsResponse) String() string
- func (l *ListJobsResponse) UnmarshalJSON(data []byte) error
- type ListJobsResponseData
- func (l *ListJobsResponseData) GetExtraProperties() map[string]interface{}
- func (l *ListJobsResponseData) GetJobs() []*JobSummary
- func (l *ListJobsResponseData) GetPagination() *Pagination
- func (l *ListJobsResponseData) MarshalJSON() ([]byte, error)
- func (l *ListJobsResponseData) SetJobs(jobs []*JobSummary)
- func (l *ListJobsResponseData) SetPagination(pagination *Pagination)
- func (l *ListJobsResponseData) String() string
- func (l *ListJobsResponseData) UnmarshalJSON(data []byte) error
- type ListWebhooksResponse
- func (l *ListWebhooksResponse) GetData() []*Webhook
- func (l *ListWebhooksResponse) GetExtraProperties() map[string]interface{}
- func (l *ListWebhooksResponse) GetSuccess() bool
- func (l *ListWebhooksResponse) MarshalJSON() ([]byte, error)
- func (l *ListWebhooksResponse) SetData(data []*Webhook)
- func (l *ListWebhooksResponse) SetSuccess(success bool)
- func (l *ListWebhooksResponse) String() string
- func (l *ListWebhooksResponse) UnmarshalJSON(data []byte) error
- type LocationDto
- func (l *LocationDto) GetCountry() *string
- func (l *LocationDto) GetExtraProperties() map[string]interface{}
- func (l *LocationDto) GetLanguages() []string
- func (l *LocationDto) MarshalJSON() ([]byte, error)
- func (l *LocationDto) SetCountry(country *string)
- func (l *LocationDto) SetLanguages(languages []string)
- func (l *LocationDto) String() string
- func (l *LocationDto) UnmarshalJSON(data []byte) error
- type MapDto
- func (m *MapDto) MarshalJSON() ([]byte, error)
- func (m *MapDto) SetIgnoreQueryParameters(ignoreQueryParameters *bool)
- func (m *MapDto) SetIncludeSubdomains(includeSubdomains *bool)
- func (m *MapDto) SetLimit(limit *float64)
- func (m *MapDto) SetLocation(location *LocationDto)
- func (m *MapDto) SetSearch(search *string)
- func (m *MapDto) SetSitemap(sitemap *MapDtoSitemap)
- func (m *MapDto) SetTimeout(timeout *float64)
- func (m *MapDto) SetURL(url string)
- func (m *MapDto) UnmarshalJSON(data []byte) error
- type MapDtoSitemap
- type MapLink
- func (m *MapLink) GetDescription() *string
- func (m *MapLink) GetExtraProperties() map[string]interface{}
- func (m *MapLink) GetTitle() *string
- func (m *MapLink) GetURL() string
- func (m *MapLink) MarshalJSON() ([]byte, error)
- func (m *MapLink) SetDescription(description *string)
- func (m *MapLink) SetTitle(title *string)
- func (m *MapLink) SetURL(url string)
- func (m *MapLink) String() string
- func (m *MapLink) UnmarshalJSON(data []byte) error
- type MapResponse
- func (m *MapResponse) GetCreditsUsed() int
- func (m *MapResponse) GetExtraProperties() map[string]interface{}
- func (m *MapResponse) GetLinks() []*MapLink
- func (m *MapResponse) GetSuccess() bool
- func (m *MapResponse) GetTotal() int
- func (m *MapResponse) MarshalJSON() ([]byte, error)
- func (m *MapResponse) SetCreditsUsed(creditsUsed int)
- func (m *MapResponse) SetLinks(links []*MapLink)
- func (m *MapResponse) SetSuccess(success bool)
- func (m *MapResponse) SetTotal(total int)
- func (m *MapResponse) String() string
- func (m *MapResponse) UnmarshalJSON(data []byte) error
- type MessageResponse
- func (m *MessageResponse) GetExtraProperties() map[string]interface{}
- func (m *MessageResponse) GetMessage() string
- func (m *MessageResponse) GetSuccess() bool
- func (m *MessageResponse) MarshalJSON() ([]byte, error)
- func (m *MessageResponse) SetMessage(message string)
- func (m *MessageResponse) SetSuccess(success bool)
- func (m *MessageResponse) String() string
- func (m *MessageResponse) UnmarshalJSON(data []byte) error
- type NotFoundError
- type Pagination
- func (p *Pagination) GetExtraProperties() map[string]interface{}
- func (p *Pagination) GetLimit() int
- func (p *Pagination) GetPage() int
- func (p *Pagination) GetTotal() int
- func (p *Pagination) GetTotalPages() *int
- func (p *Pagination) MarshalJSON() ([]byte, error)
- func (p *Pagination) SetLimit(limit int)
- func (p *Pagination) SetPage(page int)
- func (p *Pagination) SetTotal(total int)
- func (p *Pagination) SetTotalPages(totalPages *int)
- func (p *Pagination) String() string
- func (p *Pagination) UnmarshalJSON(data []byte) error
- type ParseDto
- type ScrapeDto
- func (s *ScrapeDto) MarshalJSON() ([]byte, error)
- func (s *ScrapeDto) SetActions(actions []*ActionDto)
- func (s *ScrapeDto) SetBlockAds(blockAds *bool)
- func (s *ScrapeDto) SetDomain(domain *string)
- func (s *ScrapeDto) SetExcludeTags(excludeTags []string)
- func (s *ScrapeDto) SetExtractionSchema(extractionSchema map[string]any)
- func (s *ScrapeDto) SetFormats(formats []*ScrapeDtoFormatsItem)
- func (s *ScrapeDto) SetHeaders(headers map[string]any)
- func (s *ScrapeDto) SetIncludeTags(includeTags []string)
- func (s *ScrapeDto) SetLocation(location *LocationDto)
- func (s *ScrapeDto) SetMaxAge(maxAge *float64)
- func (s *ScrapeDto) SetMobile(mobile *bool)
- func (s *ScrapeDto) SetOnlyMainContent(onlyMainContent *bool)
- func (s *ScrapeDto) SetProxy(proxy *ScrapeDtoProxy)
- func (s *ScrapeDto) SetRemoveBase64Images(removeBase64Images *bool)
- func (s *ScrapeDto) SetScreenshotAsBase64(screenshotAsBase64 *bool)
- func (s *ScrapeDto) SetSkipTLSVerification(skipTLSVerification *bool)
- func (s *ScrapeDto) SetStoreInCache(storeInCache *bool)
- func (s *ScrapeDto) SetTimeout(timeout *float64)
- func (s *ScrapeDto) SetURL(url *string)
- func (s *ScrapeDto) SetWaitFor(waitFor *float64)
- func (s *ScrapeDto) SetZeroDataRetention(zeroDataRetention *bool)
- func (s *ScrapeDto) UnmarshalJSON(data []byte) error
- type ScrapeDtoFormatsItem
- func (s *ScrapeDtoFormatsItem) Accept(visitor ScrapeDtoFormatsItemVisitor) error
- func (s *ScrapeDtoFormatsItem) GetChangeTrackingFormatDto() *ChangeTrackingFormatDto
- func (s *ScrapeDtoFormatsItem) GetJSONFormatDto() *JSONFormatDto
- func (s *ScrapeDtoFormatsItem) GetScrapeDtoFormatsItemZero() ScrapeDtoFormatsItemZero
- func (s *ScrapeDtoFormatsItem) GetSummaryFormatDto() *SummaryFormatDto
- func (s ScrapeDtoFormatsItem) MarshalJSON() ([]byte, error)
- func (s *ScrapeDtoFormatsItem) UnmarshalJSON(data []byte) error
- type ScrapeDtoFormatsItemVisitor
- type ScrapeDtoFormatsItemZero
- type ScrapeDtoProxy
- type ScrapeMetadata
- func (s *ScrapeMetadata) GetContentType() *string
- func (s *ScrapeMetadata) GetExtraProperties() map[string]interface{}
- func (s *ScrapeMetadata) GetStatusCode() *int
- func (s *ScrapeMetadata) GetTimestamp() time.Time
- func (s *ScrapeMetadata) GetTitle() *string
- func (s *ScrapeMetadata) GetURL() string
- func (s *ScrapeMetadata) MarshalJSON() ([]byte, error)
- func (s *ScrapeMetadata) SetContentType(contentType *string)
- func (s *ScrapeMetadata) SetStatusCode(statusCode *int)
- func (s *ScrapeMetadata) SetTimestamp(timestamp time.Time)
- func (s *ScrapeMetadata) SetTitle(title *string)
- func (s *ScrapeMetadata) SetURL(url string)
- func (s *ScrapeMetadata) String() string
- func (s *ScrapeMetadata) UnmarshalJSON(data []byte) error
- type ScrapeResponse
- func (s *ScrapeResponse) GetCredits() *ScrapeResponseCredits
- func (s *ScrapeResponse) GetData() map[string]any
- func (s *ScrapeResponse) GetError() *string
- func (s *ScrapeResponse) GetExtraProperties() map[string]interface{}
- func (s *ScrapeResponse) GetMetadata() *ScrapeMetadata
- func (s *ScrapeResponse) GetSuccess() bool
- func (s *ScrapeResponse) MarshalJSON() ([]byte, error)
- func (s *ScrapeResponse) SetCredits(credits *ScrapeResponseCredits)
- func (s *ScrapeResponse) SetData(data map[string]any)
- func (s *ScrapeResponse) SetError(error_ *string)
- func (s *ScrapeResponse) SetMetadata(metadata *ScrapeMetadata)
- func (s *ScrapeResponse) SetSuccess(success bool)
- func (s *ScrapeResponse) String() string
- func (s *ScrapeResponse) UnmarshalJSON(data []byte) error
- type ScrapeResponseCredits
- func (s *ScrapeResponseCredits) GetExtraProperties() map[string]interface{}
- func (s *ScrapeResponseCredits) GetUsed() int
- func (s *ScrapeResponseCredits) MarshalJSON() ([]byte, error)
- func (s *ScrapeResponseCredits) SetUsed(used int)
- func (s *ScrapeResponseCredits) String() string
- func (s *ScrapeResponseCredits) UnmarshalJSON(data []byte) error
- type ScreenshotClipDto
- func (s *ScreenshotClipDto) GetExtraProperties() map[string]interface{}
- func (s *ScreenshotClipDto) GetHeight() float64
- func (s *ScreenshotClipDto) GetWidth() float64
- func (s *ScreenshotClipDto) GetX() float64
- func (s *ScreenshotClipDto) GetY() float64
- func (s *ScreenshotClipDto) MarshalJSON() ([]byte, error)
- func (s *ScreenshotClipDto) SetHeight(height float64)
- func (s *ScreenshotClipDto) SetWidth(width float64)
- func (s *ScreenshotClipDto) SetX(x float64)
- func (s *ScreenshotClipDto) SetY(y float64)
- func (s *ScreenshotClipDto) String() string
- func (s *ScreenshotClipDto) UnmarshalJSON(data []byte) error
- type ScreenshotCookieDto
- func (s *ScreenshotCookieDto) GetDomain() *string
- func (s *ScreenshotCookieDto) GetExtraProperties() map[string]interface{}
- func (s *ScreenshotCookieDto) GetHTTPOnly() *bool
- func (s *ScreenshotCookieDto) GetName() string
- func (s *ScreenshotCookieDto) GetPath() *string
- func (s *ScreenshotCookieDto) GetSameSite() *ScreenshotCookieDtoSameSite
- func (s *ScreenshotCookieDto) GetSecure() *bool
- func (s *ScreenshotCookieDto) GetValue() string
- func (s *ScreenshotCookieDto) MarshalJSON() ([]byte, error)
- func (s *ScreenshotCookieDto) SetDomain(domain *string)
- func (s *ScreenshotCookieDto) SetHTTPOnly(httpOnly *bool)
- func (s *ScreenshotCookieDto) SetName(name string)
- func (s *ScreenshotCookieDto) SetPath(path *string)
- func (s *ScreenshotCookieDto) SetSameSite(sameSite *ScreenshotCookieDtoSameSite)
- func (s *ScreenshotCookieDto) SetSecure(secure *bool)
- func (s *ScreenshotCookieDto) SetValue(value string)
- func (s *ScreenshotCookieDto) String() string
- func (s *ScreenshotCookieDto) UnmarshalJSON(data []byte) error
- type ScreenshotCookieDtoSameSite
- type ScreenshotDto
- func (s *ScreenshotDto) MarshalJSON() ([]byte, error)
- func (s *ScreenshotDto) SetBlockAds(blockAds *bool)
- func (s *ScreenshotDto) SetClickSelector(clickSelector *string)
- func (s *ScreenshotDto) SetClip(clip *ScreenshotClipDto)
- func (s *ScreenshotDto) SetColorScheme(colorScheme *ScreenshotDtoColorScheme)
- func (s *ScreenshotDto) SetCookies(cookies []*ScreenshotCookieDto)
- func (s *ScreenshotDto) SetDelay(delay *float64)
- func (s *ScreenshotDto) SetDevice(device *ScreenshotDtoDevice)
- func (s *ScreenshotDto) SetDisableAnimations(disableAnimations *bool)
- func (s *ScreenshotDto) SetFormat(format *ScreenshotDtoFormat)
- func (s *ScreenshotDto) SetFullPage(fullPage *bool)
- func (s *ScreenshotDto) SetFullPageAlgorithm(fullPageAlgorithm *ScreenshotDtoFullPageAlgorithm)
- func (s *ScreenshotDto) SetHeaders(headers map[string]any)
- func (s *ScreenshotDto) SetHideFixedElements(hideFixedElements *bool)
- func (s *ScreenshotDto) SetHideSelectors(hideSelectors []string)
- func (s *ScreenshotDto) SetLocation(location *ScreenshotLocationDto)
- func (s *ScreenshotDto) SetMaskColor(maskColor *string)
- func (s *ScreenshotDto) SetMaskSelectors(maskSelectors []string)
- func (s *ScreenshotDto) SetMaxHeight(maxHeight *float64)
- func (s *ScreenshotDto) SetOmitBackground(omitBackground *bool)
- func (s *ScreenshotDto) SetProxy(proxy *ScreenshotDtoProxy)
- func (s *ScreenshotDto) SetQuality(quality *float64)
- func (s *ScreenshotDto) SetReducedMotion(reducedMotion *bool)
- func (s *ScreenshotDto) SetRemoveChatWidgets(removeChatWidgets *bool)
- func (s *ScreenshotDto) SetRemoveCookieBanners(removeCookieBanners *bool)
- func (s *ScreenshotDto) SetRemoveOverlays(removeOverlays *bool)
- func (s *ScreenshotDto) SetResponseFormat(responseFormat *ScreenshotDtoResponseFormat)
- func (s *ScreenshotDto) SetScale(scale *ScreenshotDtoScale)
- func (s *ScreenshotDto) SetScrollDelay(scrollDelay *float64)
- func (s *ScreenshotDto) SetScrollPage(scrollPage *bool)
- func (s *ScreenshotDto) SetSelector(selector *string)
- func (s *ScreenshotDto) SetStyles(styles []string)
- func (s *ScreenshotDto) SetTimeout(timeout *float64)
- func (s *ScreenshotDto) SetURL(url string)
- func (s *ScreenshotDto) SetViewport(viewport *ScreenshotViewportDto)
- func (s *ScreenshotDto) SetWaitForSelector(waitForSelector *string)
- func (s *ScreenshotDto) SetWaitUntil(waitUntil *ScreenshotDtoWaitUntil)
- func (s *ScreenshotDto) UnmarshalJSON(data []byte) error
- type ScreenshotDtoColorScheme
- type ScreenshotDtoDevice
- type ScreenshotDtoFormat
- type ScreenshotDtoFullPageAlgorithm
- type ScreenshotDtoProxy
- type ScreenshotDtoResponseFormat
- type ScreenshotDtoScale
- type ScreenshotDtoWaitUntil
- type ScreenshotLocationDto
- func (s *ScreenshotLocationDto) GetCountry() *string
- func (s *ScreenshotLocationDto) GetExtraProperties() map[string]interface{}
- func (s *ScreenshotLocationDto) GetLanguages() []string
- func (s *ScreenshotLocationDto) MarshalJSON() ([]byte, error)
- func (s *ScreenshotLocationDto) SetCountry(country *string)
- func (s *ScreenshotLocationDto) SetLanguages(languages []string)
- func (s *ScreenshotLocationDto) String() string
- func (s *ScreenshotLocationDto) UnmarshalJSON(data []byte) error
- type ScreenshotViewportDto
- func (s *ScreenshotViewportDto) GetExtraProperties() map[string]interface{}
- func (s *ScreenshotViewportDto) GetHeight() float64
- func (s *ScreenshotViewportDto) GetWidth() float64
- func (s *ScreenshotViewportDto) MarshalJSON() ([]byte, error)
- func (s *ScreenshotViewportDto) SetHeight(height float64)
- func (s *ScreenshotViewportDto) SetWidth(width float64)
- func (s *ScreenshotViewportDto) String() string
- func (s *ScreenshotViewportDto) UnmarshalJSON(data []byte) error
- type SearchDto
- func (s *SearchDto) MarshalJSON() ([]byte, error)
- func (s *SearchDto) SetCategories(categories []string)
- func (s *SearchDto) SetCountry(country *string)
- func (s *SearchDto) SetLimit(limit *float64)
- func (s *SearchDto) SetLocation(location *string)
- func (s *SearchDto) SetQuery(query string)
- func (s *SearchDto) SetSources(sources []string)
- func (s *SearchDto) SetTbs(tbs *string)
- func (s *SearchDto) SetTimeout(timeout *float64)
- func (s *SearchDto) UnmarshalJSON(data []byte) error
- type SearchResponse
- func (s *SearchResponse) GetCreditsUsed() int
- func (s *SearchResponse) GetData() []*SearchResult
- func (s *SearchResponse) GetExtraProperties() map[string]interface{}
- func (s *SearchResponse) GetQuery() string
- func (s *SearchResponse) GetSuccess() bool
- func (s *SearchResponse) GetTotal() int
- func (s *SearchResponse) MarshalJSON() ([]byte, error)
- func (s *SearchResponse) SetCreditsUsed(creditsUsed int)
- func (s *SearchResponse) SetData(data []*SearchResult)
- func (s *SearchResponse) SetQuery(query string)
- func (s *SearchResponse) SetSuccess(success bool)
- func (s *SearchResponse) SetTotal(total int)
- func (s *SearchResponse) String() string
- func (s *SearchResponse) UnmarshalJSON(data []byte) error
- type SearchResult
- func (s *SearchResult) GetExtraProperties() map[string]interface{}
- func (s *SearchResult) GetPublishedDate() *string
- func (s *SearchResult) GetSnippet() string
- func (s *SearchResult) GetSource() string
- func (s *SearchResult) GetTitle() string
- func (s *SearchResult) GetURL() string
- func (s *SearchResult) MarshalJSON() ([]byte, error)
- func (s *SearchResult) SetPublishedDate(publishedDate *string)
- func (s *SearchResult) SetSnippet(snippet string)
- func (s *SearchResult) SetSource(source string)
- func (s *SearchResult) SetTitle(title string)
- func (s *SearchResult) SetURL(url string)
- func (s *SearchResult) String() string
- func (s *SearchResult) UnmarshalJSON(data []byte) error
- type SummaryFormatDto
- func (s *SummaryFormatDto) GetExtraProperties() map[string]interface{}
- func (s *SummaryFormatDto) GetQuery() *string
- func (s *SummaryFormatDto) GetType() SummaryFormatDtoType
- func (s *SummaryFormatDto) MarshalJSON() ([]byte, error)
- func (s *SummaryFormatDto) SetQuery(query *string)
- func (s *SummaryFormatDto) SetType(type_ SummaryFormatDtoType)
- func (s *SummaryFormatDto) String() string
- func (s *SummaryFormatDto) UnmarshalJSON(data []byte) error
- type SummaryFormatDtoType
- type TestWebhookDto
- type TestWebhookResponse
- func (t *TestWebhookResponse) GetEvent() string
- func (t *TestWebhookResponse) GetExtraProperties() map[string]interface{}
- func (t *TestWebhookResponse) GetMessage() string
- func (t *TestWebhookResponse) GetPayload() map[string]any
- func (t *TestWebhookResponse) GetSuccess() bool
- func (t *TestWebhookResponse) MarshalJSON() ([]byte, error)
- func (t *TestWebhookResponse) SetEvent(event string)
- func (t *TestWebhookResponse) SetMessage(message string)
- func (t *TestWebhookResponse) SetPayload(payload map[string]any)
- func (t *TestWebhookResponse) SetSuccess(success bool)
- func (t *TestWebhookResponse) String() string
- func (t *TestWebhookResponse) UnmarshalJSON(data []byte) error
- type TooManyRequestsError
- type UnauthorizedError
- type UpdateWebhookDto
- func (u *UpdateWebhookDto) MarshalJSON() ([]byte, error)
- func (u *UpdateWebhookDto) SetEvents(events []string)
- func (u *UpdateWebhookDto) SetID(id string)
- func (u *UpdateWebhookDto) SetIsActive(isActive *bool)
- func (u *UpdateWebhookDto) SetURL(url *string)
- func (u *UpdateWebhookDto) UnmarshalJSON(data []byte) error
- type Webhook
- func (w *Webhook) GetCreatedAt() *time.Time
- func (w *Webhook) GetEvents() []string
- func (w *Webhook) GetExtraProperties() map[string]interface{}
- func (w *Webhook) GetID() string
- func (w *Webhook) GetIsActive() bool
- func (w *Webhook) GetRecentDeliveries() []map[string]any
- func (w *Webhook) GetSecret() *string
- func (w *Webhook) GetURL() string
- func (w *Webhook) GetUpdatedAt() *time.Time
- func (w *Webhook) MarshalJSON() ([]byte, error)
- func (w *Webhook) SetCreatedAt(createdAt *time.Time)
- func (w *Webhook) SetEvents(events []string)
- func (w *Webhook) SetID(id string)
- func (w *Webhook) SetIsActive(isActive bool)
- func (w *Webhook) SetRecentDeliveries(recentDeliveries []map[string]any)
- func (w *Webhook) SetSecret(secret *string)
- func (w *Webhook) SetURL(url string)
- func (w *Webhook) SetUpdatedAt(updatedAt *time.Time)
- func (w *Webhook) String() string
- func (w *Webhook) UnmarshalJSON(data []byte) error
- type WebhookConfigDto
- func (w *WebhookConfigDto) GetEvents() []string
- func (w *WebhookConfigDto) GetExtraProperties() map[string]interface{}
- func (w *WebhookConfigDto) GetMetadata() map[string]any
- func (w *WebhookConfigDto) GetSecret() *string
- func (w *WebhookConfigDto) GetURL() string
- func (w *WebhookConfigDto) MarshalJSON() ([]byte, error)
- func (w *WebhookConfigDto) SetEvents(events []string)
- func (w *WebhookConfigDto) SetMetadata(metadata map[string]any)
- func (w *WebhookConfigDto) SetSecret(secret *string)
- func (w *WebhookConfigDto) SetURL(url string)
- func (w *WebhookConfigDto) String() string
- func (w *WebhookConfigDto) UnmarshalJSON(data []byte) error
- type WebhookResponse
- func (w *WebhookResponse) GetData() *Webhook
- func (w *WebhookResponse) GetExtraProperties() map[string]interface{}
- func (w *WebhookResponse) GetSuccess() bool
- func (w *WebhookResponse) MarshalJSON() ([]byte, error)
- func (w *WebhookResponse) SetData(data *Webhook)
- func (w *WebhookResponse) SetSuccess(success bool)
- func (w *WebhookResponse) String() string
- func (w *WebhookResponse) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
var Environments = struct { Production string }{ Production: "https://api.berrycrawl.com/api/v1", }
Environments defines all of the API environments. These values can be used with the WithBaseURL RequestOption to override the client's default environment, if any.
var ErrorCodes internal.ErrorCodes = internal.ErrorCodes{ 400: func(apiError *core.APIError) error { return &BadRequestError{ APIError: apiError, } }, 401: func(apiError *core.APIError) error { return &UnauthorizedError{ APIError: apiError, } }, 404: func(apiError *core.APIError) error { return &NotFoundError{ APIError: apiError, } }, 429: func(apiError *core.APIError) error { return &TooManyRequestsError{ APIError: apiError, } }, }
Functions ¶
func Complex128 ¶
func Complex128(c complex128) *complex128
Complex128 returns a pointer to the given complex128 value.
func MustParseDate ¶
MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.
func MustParseDateTime ¶
MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.
Types ¶
type AccountResponse ¶
type AccountResponse struct {
Data *AccountResponseData `json:"data" url:"data"`
Success bool `json:"success" url:"success"`
// contains filtered or unexported fields
}
func (*AccountResponse) GetData ¶
func (a *AccountResponse) GetData() *AccountResponseData
func (*AccountResponse) GetExtraProperties ¶
func (a *AccountResponse) GetExtraProperties() map[string]interface{}
func (*AccountResponse) GetSuccess ¶
func (a *AccountResponse) GetSuccess() bool
func (*AccountResponse) MarshalJSON ¶
func (a *AccountResponse) MarshalJSON() ([]byte, error)
func (*AccountResponse) SetData ¶
func (a *AccountResponse) SetData(data *AccountResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AccountResponse) SetSuccess ¶
func (a *AccountResponse) SetSuccess(success bool)
SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AccountResponse) String ¶
func (a *AccountResponse) String() string
func (*AccountResponse) UnmarshalJSON ¶
func (a *AccountResponse) UnmarshalJSON(data []byte) error
type AccountResponseData ¶
type AccountResponseData struct {
CreatedAt time.Time `json:"createdAt" url:"createdAt"`
Credits int `json:"credits" url:"credits"`
Email string `json:"email" url:"email"`
ID string `json:"id" url:"id"`
LifetimeSpendUsd float64 `json:"lifetimeSpendUsd" url:"lifetimeSpendUsd"`
Plan *AccountResponseDataPlan `json:"plan" url:"plan"`
Queue *AccountResponseDataQueue `json:"queue" url:"queue"`
// contains filtered or unexported fields
}
func (*AccountResponseData) GetCreatedAt ¶
func (a *AccountResponseData) GetCreatedAt() time.Time
func (*AccountResponseData) GetCredits ¶
func (a *AccountResponseData) GetCredits() int
func (*AccountResponseData) GetEmail ¶
func (a *AccountResponseData) GetEmail() string
func (*AccountResponseData) GetExtraProperties ¶
func (a *AccountResponseData) GetExtraProperties() map[string]interface{}
func (*AccountResponseData) GetID ¶
func (a *AccountResponseData) GetID() string
func (*AccountResponseData) GetLifetimeSpendUsd ¶
func (a *AccountResponseData) GetLifetimeSpendUsd() float64
func (*AccountResponseData) GetPlan ¶
func (a *AccountResponseData) GetPlan() *AccountResponseDataPlan
func (*AccountResponseData) GetQueue ¶
func (a *AccountResponseData) GetQueue() *AccountResponseDataQueue
func (*AccountResponseData) MarshalJSON ¶
func (a *AccountResponseData) MarshalJSON() ([]byte, error)
func (*AccountResponseData) SetCreatedAt ¶
func (a *AccountResponseData) SetCreatedAt(createdAt time.Time)
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AccountResponseData) SetCredits ¶
func (a *AccountResponseData) SetCredits(credits int)
SetCredits sets the Credits field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AccountResponseData) SetEmail ¶
func (a *AccountResponseData) SetEmail(email string)
SetEmail sets the Email field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AccountResponseData) SetID ¶
func (a *AccountResponseData) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AccountResponseData) SetLifetimeSpendUsd ¶
func (a *AccountResponseData) SetLifetimeSpendUsd(lifetimeSpendUsd float64)
SetLifetimeSpendUsd sets the LifetimeSpendUsd field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AccountResponseData) SetPlan ¶
func (a *AccountResponseData) SetPlan(plan *AccountResponseDataPlan)
SetPlan sets the Plan field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AccountResponseData) SetQueue ¶
func (a *AccountResponseData) SetQueue(queue *AccountResponseDataQueue)
SetQueue sets the Queue field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AccountResponseData) String ¶
func (a *AccountResponseData) String() string
func (*AccountResponseData) UnmarshalJSON ¶
func (a *AccountResponseData) UnmarshalJSON(data []byte) error
type AccountResponseDataPlan ¶
type AccountResponseDataPlan struct {
Concurrency int `json:"concurrency" url:"concurrency"`
ID string `json:"id" url:"id"`
Name string `json:"name" url:"name"`
QueueLimit int `json:"queueLimit" url:"queueLimit"`
RateLimitPerMinute int `json:"rateLimitPerMinute" url:"rateLimitPerMinute"`
// contains filtered or unexported fields
}
func (*AccountResponseDataPlan) GetConcurrency ¶
func (a *AccountResponseDataPlan) GetConcurrency() int
func (*AccountResponseDataPlan) GetExtraProperties ¶
func (a *AccountResponseDataPlan) GetExtraProperties() map[string]interface{}
func (*AccountResponseDataPlan) GetID ¶
func (a *AccountResponseDataPlan) GetID() string
func (*AccountResponseDataPlan) GetName ¶
func (a *AccountResponseDataPlan) GetName() string
func (*AccountResponseDataPlan) GetQueueLimit ¶
func (a *AccountResponseDataPlan) GetQueueLimit() int
func (*AccountResponseDataPlan) GetRateLimitPerMinute ¶
func (a *AccountResponseDataPlan) GetRateLimitPerMinute() int
func (*AccountResponseDataPlan) MarshalJSON ¶
func (a *AccountResponseDataPlan) MarshalJSON() ([]byte, error)
func (*AccountResponseDataPlan) SetConcurrency ¶
func (a *AccountResponseDataPlan) SetConcurrency(concurrency int)
SetConcurrency sets the Concurrency field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AccountResponseDataPlan) SetID ¶
func (a *AccountResponseDataPlan) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AccountResponseDataPlan) SetName ¶
func (a *AccountResponseDataPlan) SetName(name string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AccountResponseDataPlan) SetQueueLimit ¶
func (a *AccountResponseDataPlan) SetQueueLimit(queueLimit int)
SetQueueLimit sets the QueueLimit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AccountResponseDataPlan) SetRateLimitPerMinute ¶
func (a *AccountResponseDataPlan) SetRateLimitPerMinute(rateLimitPerMinute int)
SetRateLimitPerMinute sets the RateLimitPerMinute field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AccountResponseDataPlan) String ¶
func (a *AccountResponseDataPlan) String() string
func (*AccountResponseDataPlan) UnmarshalJSON ¶
func (a *AccountResponseDataPlan) UnmarshalJSON(data []byte) error
type AccountResponseDataQueue ¶
type AccountResponseDataQueue struct {
Active int `json:"active" url:"active"`
Waiting int `json:"waiting" url:"waiting"`
// contains filtered or unexported fields
}
func (*AccountResponseDataQueue) GetActive ¶
func (a *AccountResponseDataQueue) GetActive() int
func (*AccountResponseDataQueue) GetExtraProperties ¶
func (a *AccountResponseDataQueue) GetExtraProperties() map[string]interface{}
func (*AccountResponseDataQueue) GetWaiting ¶
func (a *AccountResponseDataQueue) GetWaiting() int
func (*AccountResponseDataQueue) MarshalJSON ¶
func (a *AccountResponseDataQueue) MarshalJSON() ([]byte, error)
func (*AccountResponseDataQueue) SetActive ¶
func (a *AccountResponseDataQueue) SetActive(active int)
SetActive sets the Active field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AccountResponseDataQueue) SetWaiting ¶
func (a *AccountResponseDataQueue) SetWaiting(waiting int)
SetWaiting sets the Waiting field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AccountResponseDataQueue) String ¶
func (a *AccountResponseDataQueue) String() string
func (*AccountResponseDataQueue) UnmarshalJSON ¶
func (a *AccountResponseDataQueue) UnmarshalJSON(data []byte) error
type ActionDto ¶
type ActionDto struct {
Amount *float64 `json:"amount,omitempty" url:"amount,omitempty"`
Direction *ActionDtoDirection `json:"direction,omitempty" url:"direction,omitempty"`
Key *string `json:"key,omitempty" url:"key,omitempty"`
Milliseconds *float64 `json:"milliseconds,omitempty" url:"milliseconds,omitempty"`
Selector *string `json:"selector,omitempty" url:"selector,omitempty"`
Text *string `json:"text,omitempty" url:"text,omitempty"`
Type ActionDtoType `json:"type" url:"type"`
// contains filtered or unexported fields
}
func (*ActionDto) GetDirection ¶
func (a *ActionDto) GetDirection() *ActionDtoDirection
func (*ActionDto) GetExtraProperties ¶
func (*ActionDto) GetMilliseconds ¶
func (*ActionDto) GetSelector ¶
func (*ActionDto) GetType ¶
func (a *ActionDto) GetType() ActionDtoType
func (*ActionDto) MarshalJSON ¶
func (*ActionDto) SetAmount ¶
SetAmount sets the Amount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ActionDto) SetDirection ¶
func (a *ActionDto) SetDirection(direction *ActionDtoDirection)
SetDirection sets the Direction field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ActionDto) SetKey ¶
SetKey sets the Key field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ActionDto) SetMilliseconds ¶
SetMilliseconds sets the Milliseconds field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ActionDto) SetSelector ¶
SetSelector sets the Selector field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ActionDto) SetText ¶
SetText sets the Text field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ActionDto) SetType ¶
func (a *ActionDto) SetType(type_ ActionDtoType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ActionDto) UnmarshalJSON ¶
type ActionDtoDirection ¶
type ActionDtoDirection string
const ( ActionDtoDirectionUp ActionDtoDirection = "up" ActionDtoDirectionDown ActionDtoDirection = "down" )
func NewActionDtoDirectionFromString ¶
func NewActionDtoDirectionFromString(s string) (ActionDtoDirection, error)
func (ActionDtoDirection) Ptr ¶
func (a ActionDtoDirection) Ptr() *ActionDtoDirection
type ActionDtoType ¶
type ActionDtoType string
const ( ActionDtoTypeWait ActionDtoType = "wait" ActionDtoTypeClick ActionDtoType = "click" ActionDtoTypeWrite ActionDtoType = "write" ActionDtoTypePress ActionDtoType = "press" ActionDtoTypeScroll ActionDtoType = "scroll" ActionDtoTypeScrape ActionDtoType = "scrape" ActionDtoTypeScreenshot ActionDtoType = "screenshot" ActionDtoTypePdf ActionDtoType = "pdf" )
func NewActionDtoTypeFromString ¶
func NewActionDtoTypeFromString(s string) (ActionDtoType, error)
func (ActionDtoType) Ptr ¶
func (a ActionDtoType) Ptr() *ActionDtoType
type AgentConfigDto ¶
type AgentConfigDto struct {
// Model routing mode. "default" uses the fast default model; "smart" uses the higher-latency reasoning model.
Mode *AgentConfigDtoMode `json:"mode,omitempty" url:"mode,omitempty"`
// Explicit AI model to use. Omit for the configured default, or set "smart" to use the configured smart model.
Model *string `json:"model,omitempty" url:"model,omitempty"`
// contains filtered or unexported fields
}
func (*AgentConfigDto) GetExtraProperties ¶
func (a *AgentConfigDto) GetExtraProperties() map[string]interface{}
func (*AgentConfigDto) GetMode ¶
func (a *AgentConfigDto) GetMode() *AgentConfigDtoMode
func (*AgentConfigDto) GetModel ¶
func (a *AgentConfigDto) GetModel() *string
func (*AgentConfigDto) MarshalJSON ¶
func (a *AgentConfigDto) MarshalJSON() ([]byte, error)
func (*AgentConfigDto) SetMode ¶
func (a *AgentConfigDto) SetMode(mode *AgentConfigDtoMode)
SetMode sets the Mode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AgentConfigDto) SetModel ¶
func (a *AgentConfigDto) SetModel(model *string)
SetModel sets the Model field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*AgentConfigDto) String ¶
func (a *AgentConfigDto) String() string
func (*AgentConfigDto) UnmarshalJSON ¶
func (a *AgentConfigDto) UnmarshalJSON(data []byte) error
type AgentConfigDtoMode ¶
type AgentConfigDtoMode string
Model routing mode. "default" uses the fast default model; "smart" uses the higher-latency reasoning model.
const ( AgentConfigDtoModeDefault AgentConfigDtoMode = "default" AgentConfigDtoModeSmart AgentConfigDtoMode = "smart" )
func NewAgentConfigDtoModeFromString ¶
func NewAgentConfigDtoModeFromString(s string) (AgentConfigDtoMode, error)
func (AgentConfigDtoMode) Ptr ¶
func (a AgentConfigDtoMode) Ptr() *AgentConfigDtoMode
type BadRequestError ¶
Invalid website URL or insufficient credits
func (*BadRequestError) MarshalJSON ¶
func (b *BadRequestError) MarshalJSON() ([]byte, error)
func (*BadRequestError) UnmarshalJSON ¶
func (b *BadRequestError) UnmarshalJSON(data []byte) error
func (*BadRequestError) Unwrap ¶
func (b *BadRequestError) Unwrap() error
type BrandAsset ¶
type BrandAsset struct {
Height *int `json:"height,omitempty" url:"height,omitempty"`
Theme *string `json:"theme,omitempty" url:"theme,omitempty"`
Type string `json:"type" url:"type"`
URL string `json:"url" url:"url"`
Width *int `json:"width,omitempty" url:"width,omitempty"`
// contains filtered or unexported fields
}
func (*BrandAsset) GetExtraProperties ¶
func (b *BrandAsset) GetExtraProperties() map[string]interface{}
func (*BrandAsset) GetHeight ¶
func (b *BrandAsset) GetHeight() *int
func (*BrandAsset) GetTheme ¶
func (b *BrandAsset) GetTheme() *string
func (*BrandAsset) GetType ¶
func (b *BrandAsset) GetType() string
func (*BrandAsset) GetURL ¶
func (b *BrandAsset) GetURL() string
func (*BrandAsset) GetWidth ¶
func (b *BrandAsset) GetWidth() *int
func (*BrandAsset) MarshalJSON ¶
func (b *BrandAsset) MarshalJSON() ([]byte, error)
func (*BrandAsset) SetHeight ¶
func (b *BrandAsset) SetHeight(height *int)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandAsset) SetTheme ¶
func (b *BrandAsset) SetTheme(theme *string)
SetTheme sets the Theme field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandAsset) SetType ¶
func (b *BrandAsset) SetType(type_ string)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandAsset) SetURL ¶
func (b *BrandAsset) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandAsset) SetWidth ¶
func (b *BrandAsset) SetWidth(width *int)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandAsset) String ¶
func (b *BrandAsset) String() string
func (*BrandAsset) UnmarshalJSON ¶
func (b *BrandAsset) UnmarshalJSON(data []byte) error
type BrandComponentStyle ¶ added in v0.2.0
type BrandComponentStyle struct {
Background *string `json:"background,omitempty" url:"background,omitempty"`
BorderColor *string `json:"borderColor,omitempty" url:"borderColor,omitempty"`
BorderRadius *string `json:"borderRadius,omitempty" url:"borderRadius,omitempty"`
Shadow *string `json:"shadow,omitempty" url:"shadow,omitempty"`
TextColor *string `json:"textColor,omitempty" url:"textColor,omitempty"`
// contains filtered or unexported fields
}
func (*BrandComponentStyle) GetBackground ¶ added in v0.2.0
func (b *BrandComponentStyle) GetBackground() *string
func (*BrandComponentStyle) GetBorderColor ¶ added in v0.2.0
func (b *BrandComponentStyle) GetBorderColor() *string
func (*BrandComponentStyle) GetBorderRadius ¶ added in v0.2.0
func (b *BrandComponentStyle) GetBorderRadius() *string
func (*BrandComponentStyle) GetExtraProperties ¶ added in v0.2.0
func (b *BrandComponentStyle) GetExtraProperties() map[string]interface{}
func (*BrandComponentStyle) GetShadow ¶ added in v0.2.0
func (b *BrandComponentStyle) GetShadow() *string
func (*BrandComponentStyle) GetTextColor ¶ added in v0.2.0
func (b *BrandComponentStyle) GetTextColor() *string
func (*BrandComponentStyle) MarshalJSON ¶ added in v0.2.0
func (b *BrandComponentStyle) MarshalJSON() ([]byte, error)
func (*BrandComponentStyle) SetBackground ¶ added in v0.2.0
func (b *BrandComponentStyle) SetBackground(background *string)
SetBackground sets the Background field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandComponentStyle) SetBorderColor ¶ added in v0.2.0
func (b *BrandComponentStyle) SetBorderColor(borderColor *string)
SetBorderColor sets the BorderColor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandComponentStyle) SetBorderRadius ¶ added in v0.2.0
func (b *BrandComponentStyle) SetBorderRadius(borderRadius *string)
SetBorderRadius sets the BorderRadius field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandComponentStyle) SetShadow ¶ added in v0.2.0
func (b *BrandComponentStyle) SetShadow(shadow *string)
SetShadow sets the Shadow field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandComponentStyle) SetTextColor ¶ added in v0.2.0
func (b *BrandComponentStyle) SetTextColor(textColor *string)
SetTextColor sets the TextColor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandComponentStyle) String ¶ added in v0.2.0
func (b *BrandComponentStyle) String() string
func (*BrandComponentStyle) UnmarshalJSON ¶ added in v0.2.0
func (b *BrandComponentStyle) UnmarshalJSON(data []byte) error
type BrandDesignSystem ¶ added in v0.2.0
type BrandDesignSystem struct {
Colors *BrandDesignSystemColors `json:"colors" url:"colors"`
ColorScheme BrandDesignSystemColorScheme `json:"colorScheme" url:"colorScheme"`
Components *BrandDesignSystemComponents `json:"components" url:"components"`
Images *BrandDesignSystemImages `json:"images" url:"images"`
Spacing *BrandDesignSystemSpacing `json:"spacing" url:"spacing"`
Typography *BrandDesignSystemTypography `json:"typography" url:"typography"`
// contains filtered or unexported fields
}
func (*BrandDesignSystem) GetColorScheme ¶ added in v0.2.0
func (b *BrandDesignSystem) GetColorScheme() BrandDesignSystemColorScheme
func (*BrandDesignSystem) GetColors ¶ added in v0.2.0
func (b *BrandDesignSystem) GetColors() *BrandDesignSystemColors
func (*BrandDesignSystem) GetComponents ¶ added in v0.2.0
func (b *BrandDesignSystem) GetComponents() *BrandDesignSystemComponents
func (*BrandDesignSystem) GetExtraProperties ¶ added in v0.2.0
func (b *BrandDesignSystem) GetExtraProperties() map[string]interface{}
func (*BrandDesignSystem) GetImages ¶ added in v0.2.0
func (b *BrandDesignSystem) GetImages() *BrandDesignSystemImages
func (*BrandDesignSystem) GetSpacing ¶ added in v0.2.0
func (b *BrandDesignSystem) GetSpacing() *BrandDesignSystemSpacing
func (*BrandDesignSystem) GetTypography ¶ added in v0.2.0
func (b *BrandDesignSystem) GetTypography() *BrandDesignSystemTypography
func (*BrandDesignSystem) MarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystem) MarshalJSON() ([]byte, error)
func (*BrandDesignSystem) SetColorScheme ¶ added in v0.2.0
func (b *BrandDesignSystem) SetColorScheme(colorScheme BrandDesignSystemColorScheme)
SetColorScheme sets the ColorScheme field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystem) SetColors ¶ added in v0.2.0
func (b *BrandDesignSystem) SetColors(colors *BrandDesignSystemColors)
SetColors sets the Colors field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystem) SetComponents ¶ added in v0.2.0
func (b *BrandDesignSystem) SetComponents(components *BrandDesignSystemComponents)
SetComponents sets the Components field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystem) SetImages ¶ added in v0.2.0
func (b *BrandDesignSystem) SetImages(images *BrandDesignSystemImages)
SetImages sets the Images field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystem) SetSpacing ¶ added in v0.2.0
func (b *BrandDesignSystem) SetSpacing(spacing *BrandDesignSystemSpacing)
SetSpacing sets the Spacing field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystem) SetTypography ¶ added in v0.2.0
func (b *BrandDesignSystem) SetTypography(typography *BrandDesignSystemTypography)
SetTypography sets the Typography field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystem) String ¶ added in v0.2.0
func (b *BrandDesignSystem) String() string
func (*BrandDesignSystem) UnmarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystem) UnmarshalJSON(data []byte) error
type BrandDesignSystemColorScheme ¶ added in v0.2.0
type BrandDesignSystemColorScheme string
const ( BrandDesignSystemColorSchemeLight BrandDesignSystemColorScheme = "light" BrandDesignSystemColorSchemeDark BrandDesignSystemColorScheme = "dark" )
func NewBrandDesignSystemColorSchemeFromString ¶ added in v0.2.0
func NewBrandDesignSystemColorSchemeFromString(s string) (BrandDesignSystemColorScheme, error)
func (BrandDesignSystemColorScheme) Ptr ¶ added in v0.2.0
func (b BrandDesignSystemColorScheme) Ptr() *BrandDesignSystemColorScheme
type BrandDesignSystemColors ¶ added in v0.2.0
type BrandDesignSystemColors struct {
Accent *string `json:"accent,omitempty" url:"accent,omitempty"`
Background *string `json:"background,omitempty" url:"background,omitempty"`
Link *string `json:"link,omitempty" url:"link,omitempty"`
Primary *string `json:"primary,omitempty" url:"primary,omitempty"`
Secondary *string `json:"secondary,omitempty" url:"secondary,omitempty"`
TextPrimary *string `json:"textPrimary,omitempty" url:"textPrimary,omitempty"`
// contains filtered or unexported fields
}
func (*BrandDesignSystemColors) GetAccent ¶ added in v0.2.0
func (b *BrandDesignSystemColors) GetAccent() *string
func (*BrandDesignSystemColors) GetBackground ¶ added in v0.2.0
func (b *BrandDesignSystemColors) GetBackground() *string
func (*BrandDesignSystemColors) GetExtraProperties ¶ added in v0.2.0
func (b *BrandDesignSystemColors) GetExtraProperties() map[string]interface{}
func (*BrandDesignSystemColors) GetLink ¶ added in v0.2.0
func (b *BrandDesignSystemColors) GetLink() *string
func (*BrandDesignSystemColors) GetPrimary ¶ added in v0.2.0
func (b *BrandDesignSystemColors) GetPrimary() *string
func (*BrandDesignSystemColors) GetSecondary ¶ added in v0.2.0
func (b *BrandDesignSystemColors) GetSecondary() *string
func (*BrandDesignSystemColors) GetTextPrimary ¶ added in v0.2.0
func (b *BrandDesignSystemColors) GetTextPrimary() *string
func (*BrandDesignSystemColors) MarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystemColors) MarshalJSON() ([]byte, error)
func (*BrandDesignSystemColors) SetAccent ¶ added in v0.2.0
func (b *BrandDesignSystemColors) SetAccent(accent *string)
SetAccent sets the Accent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemColors) SetBackground ¶ added in v0.2.0
func (b *BrandDesignSystemColors) SetBackground(background *string)
SetBackground sets the Background field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemColors) SetLink ¶ added in v0.2.0
func (b *BrandDesignSystemColors) SetLink(link *string)
SetLink sets the Link field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemColors) SetPrimary ¶ added in v0.2.0
func (b *BrandDesignSystemColors) SetPrimary(primary *string)
SetPrimary sets the Primary field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemColors) SetSecondary ¶ added in v0.2.0
func (b *BrandDesignSystemColors) SetSecondary(secondary *string)
SetSecondary sets the Secondary field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemColors) SetTextPrimary ¶ added in v0.2.0
func (b *BrandDesignSystemColors) SetTextPrimary(textPrimary *string)
SetTextPrimary sets the TextPrimary field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemColors) String ¶ added in v0.2.0
func (b *BrandDesignSystemColors) String() string
func (*BrandDesignSystemColors) UnmarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystemColors) UnmarshalJSON(data []byte) error
type BrandDesignSystemComponents ¶ added in v0.2.0
type BrandDesignSystemComponents struct {
ButtonPrimary *BrandComponentStyle `json:"buttonPrimary,omitempty" url:"buttonPrimary,omitempty"`
ButtonSecondary *BrandComponentStyle `json:"buttonSecondary,omitempty" url:"buttonSecondary,omitempty"`
Input *BrandComponentStyle `json:"input,omitempty" url:"input,omitempty"`
// contains filtered or unexported fields
}
func (*BrandDesignSystemComponents) GetButtonPrimary ¶ added in v0.2.0
func (b *BrandDesignSystemComponents) GetButtonPrimary() *BrandComponentStyle
func (*BrandDesignSystemComponents) GetButtonSecondary ¶ added in v0.2.0
func (b *BrandDesignSystemComponents) GetButtonSecondary() *BrandComponentStyle
func (*BrandDesignSystemComponents) GetExtraProperties ¶ added in v0.2.0
func (b *BrandDesignSystemComponents) GetExtraProperties() map[string]interface{}
func (*BrandDesignSystemComponents) GetInput ¶ added in v0.2.0
func (b *BrandDesignSystemComponents) GetInput() *BrandComponentStyle
func (*BrandDesignSystemComponents) MarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystemComponents) MarshalJSON() ([]byte, error)
func (*BrandDesignSystemComponents) SetButtonPrimary ¶ added in v0.2.0
func (b *BrandDesignSystemComponents) SetButtonPrimary(buttonPrimary *BrandComponentStyle)
SetButtonPrimary sets the ButtonPrimary field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemComponents) SetButtonSecondary ¶ added in v0.2.0
func (b *BrandDesignSystemComponents) SetButtonSecondary(buttonSecondary *BrandComponentStyle)
SetButtonSecondary sets the ButtonSecondary field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemComponents) SetInput ¶ added in v0.2.0
func (b *BrandDesignSystemComponents) SetInput(input *BrandComponentStyle)
SetInput sets the Input field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemComponents) String ¶ added in v0.2.0
func (b *BrandDesignSystemComponents) String() string
func (*BrandDesignSystemComponents) UnmarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystemComponents) UnmarshalJSON(data []byte) error
type BrandDesignSystemImages ¶ added in v0.2.0
type BrandDesignSystemImages struct {
Favicon *string `json:"favicon,omitempty" url:"favicon,omitempty"`
Logo *string `json:"logo,omitempty" url:"logo,omitempty"`
OgImage *string `json:"ogImage,omitempty" url:"ogImage,omitempty"`
// contains filtered or unexported fields
}
func (*BrandDesignSystemImages) GetExtraProperties ¶ added in v0.2.0
func (b *BrandDesignSystemImages) GetExtraProperties() map[string]interface{}
func (*BrandDesignSystemImages) GetFavicon ¶ added in v0.2.0
func (b *BrandDesignSystemImages) GetFavicon() *string
func (*BrandDesignSystemImages) GetLogo ¶ added in v0.2.0
func (b *BrandDesignSystemImages) GetLogo() *string
func (*BrandDesignSystemImages) GetOgImage ¶ added in v0.2.0
func (b *BrandDesignSystemImages) GetOgImage() *string
func (*BrandDesignSystemImages) MarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystemImages) MarshalJSON() ([]byte, error)
func (*BrandDesignSystemImages) SetFavicon ¶ added in v0.2.0
func (b *BrandDesignSystemImages) SetFavicon(favicon *string)
SetFavicon sets the Favicon field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemImages) SetLogo ¶ added in v0.2.0
func (b *BrandDesignSystemImages) SetLogo(logo *string)
SetLogo sets the Logo field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemImages) SetOgImage ¶ added in v0.2.0
func (b *BrandDesignSystemImages) SetOgImage(ogImage *string)
SetOgImage sets the OgImage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemImages) String ¶ added in v0.2.0
func (b *BrandDesignSystemImages) String() string
func (*BrandDesignSystemImages) UnmarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystemImages) UnmarshalJSON(data []byte) error
type BrandDesignSystemSpacing ¶ added in v0.2.0
type BrandDesignSystemSpacing struct {
BaseUnit float64 `json:"baseUnit" url:"baseUnit"`
BorderRadius *string `json:"borderRadius,omitempty" url:"borderRadius,omitempty"`
// contains filtered or unexported fields
}
func (*BrandDesignSystemSpacing) GetBaseUnit ¶ added in v0.2.0
func (b *BrandDesignSystemSpacing) GetBaseUnit() float64
func (*BrandDesignSystemSpacing) GetBorderRadius ¶ added in v0.2.0
func (b *BrandDesignSystemSpacing) GetBorderRadius() *string
func (*BrandDesignSystemSpacing) GetExtraProperties ¶ added in v0.2.0
func (b *BrandDesignSystemSpacing) GetExtraProperties() map[string]interface{}
func (*BrandDesignSystemSpacing) MarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystemSpacing) MarshalJSON() ([]byte, error)
func (*BrandDesignSystemSpacing) SetBaseUnit ¶ added in v0.2.0
func (b *BrandDesignSystemSpacing) SetBaseUnit(baseUnit float64)
SetBaseUnit sets the BaseUnit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemSpacing) SetBorderRadius ¶ added in v0.2.0
func (b *BrandDesignSystemSpacing) SetBorderRadius(borderRadius *string)
SetBorderRadius sets the BorderRadius field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemSpacing) String ¶ added in v0.2.0
func (b *BrandDesignSystemSpacing) String() string
func (*BrandDesignSystemSpacing) UnmarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystemSpacing) UnmarshalJSON(data []byte) error
type BrandDesignSystemTypography ¶ added in v0.2.0
type BrandDesignSystemTypography struct {
FontFamilies *BrandDesignSystemTypographyFontFamilies `json:"fontFamilies" url:"fontFamilies"`
FontSizes *BrandDesignSystemTypographyFontSizes `json:"fontSizes" url:"fontSizes"`
FontStacks *BrandDesignSystemTypographyFontStacks `json:"fontStacks" url:"fontStacks"`
// contains filtered or unexported fields
}
func (*BrandDesignSystemTypography) GetExtraProperties ¶ added in v0.2.0
func (b *BrandDesignSystemTypography) GetExtraProperties() map[string]interface{}
func (*BrandDesignSystemTypography) GetFontFamilies ¶ added in v0.2.0
func (b *BrandDesignSystemTypography) GetFontFamilies() *BrandDesignSystemTypographyFontFamilies
func (*BrandDesignSystemTypography) GetFontSizes ¶ added in v0.2.0
func (b *BrandDesignSystemTypography) GetFontSizes() *BrandDesignSystemTypographyFontSizes
func (*BrandDesignSystemTypography) GetFontStacks ¶ added in v0.2.0
func (b *BrandDesignSystemTypography) GetFontStacks() *BrandDesignSystemTypographyFontStacks
func (*BrandDesignSystemTypography) MarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystemTypography) MarshalJSON() ([]byte, error)
func (*BrandDesignSystemTypography) SetFontFamilies ¶ added in v0.2.0
func (b *BrandDesignSystemTypography) SetFontFamilies(fontFamilies *BrandDesignSystemTypographyFontFamilies)
SetFontFamilies sets the FontFamilies field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemTypography) SetFontSizes ¶ added in v0.2.0
func (b *BrandDesignSystemTypography) SetFontSizes(fontSizes *BrandDesignSystemTypographyFontSizes)
SetFontSizes sets the FontSizes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemTypography) SetFontStacks ¶ added in v0.2.0
func (b *BrandDesignSystemTypography) SetFontStacks(fontStacks *BrandDesignSystemTypographyFontStacks)
SetFontStacks sets the FontStacks field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemTypography) String ¶ added in v0.2.0
func (b *BrandDesignSystemTypography) String() string
func (*BrandDesignSystemTypography) UnmarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystemTypography) UnmarshalJSON(data []byte) error
type BrandDesignSystemTypographyFontFamilies ¶ added in v0.2.0
type BrandDesignSystemTypographyFontFamilies struct {
Heading *string `json:"heading,omitempty" url:"heading,omitempty"`
Primary *string `json:"primary,omitempty" url:"primary,omitempty"`
// contains filtered or unexported fields
}
func (*BrandDesignSystemTypographyFontFamilies) GetExtraProperties ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontFamilies) GetExtraProperties() map[string]interface{}
func (*BrandDesignSystemTypographyFontFamilies) GetHeading ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontFamilies) GetHeading() *string
func (*BrandDesignSystemTypographyFontFamilies) GetPrimary ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontFamilies) GetPrimary() *string
func (*BrandDesignSystemTypographyFontFamilies) MarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontFamilies) MarshalJSON() ([]byte, error)
func (*BrandDesignSystemTypographyFontFamilies) SetHeading ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontFamilies) SetHeading(heading *string)
SetHeading sets the Heading field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemTypographyFontFamilies) SetPrimary ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontFamilies) SetPrimary(primary *string)
SetPrimary sets the Primary field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemTypographyFontFamilies) String ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontFamilies) String() string
func (*BrandDesignSystemTypographyFontFamilies) UnmarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontFamilies) UnmarshalJSON(data []byte) error
type BrandDesignSystemTypographyFontSizes ¶ added in v0.2.0
type BrandDesignSystemTypographyFontSizes struct {
Body *string `json:"body,omitempty" url:"body,omitempty"`
H1 *string `json:"h1,omitempty" url:"h1,omitempty"`
H2 *string `json:"h2,omitempty" url:"h2,omitempty"`
// contains filtered or unexported fields
}
func (*BrandDesignSystemTypographyFontSizes) GetBody ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontSizes) GetBody() *string
func (*BrandDesignSystemTypographyFontSizes) GetExtraProperties ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontSizes) GetExtraProperties() map[string]interface{}
func (*BrandDesignSystemTypographyFontSizes) GetH1 ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontSizes) GetH1() *string
func (*BrandDesignSystemTypographyFontSizes) GetH2 ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontSizes) GetH2() *string
func (*BrandDesignSystemTypographyFontSizes) MarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontSizes) MarshalJSON() ([]byte, error)
func (*BrandDesignSystemTypographyFontSizes) SetBody ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontSizes) SetBody(body *string)
SetBody sets the Body field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemTypographyFontSizes) SetH1 ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontSizes) SetH1(h1 *string)
SetH1 sets the H1 field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemTypographyFontSizes) SetH2 ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontSizes) SetH2(h2 *string)
SetH2 sets the H2 field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemTypographyFontSizes) String ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontSizes) String() string
func (*BrandDesignSystemTypographyFontSizes) UnmarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontSizes) UnmarshalJSON(data []byte) error
type BrandDesignSystemTypographyFontStacks ¶ added in v0.2.0
type BrandDesignSystemTypographyFontStacks struct {
Body []string `json:"body" url:"body"`
Heading []string `json:"heading" url:"heading"`
Paragraph []string `json:"paragraph" url:"paragraph"`
// contains filtered or unexported fields
}
func (*BrandDesignSystemTypographyFontStacks) GetBody ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontStacks) GetBody() []string
func (*BrandDesignSystemTypographyFontStacks) GetExtraProperties ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontStacks) GetExtraProperties() map[string]interface{}
func (*BrandDesignSystemTypographyFontStacks) GetHeading ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontStacks) GetHeading() []string
func (*BrandDesignSystemTypographyFontStacks) GetParagraph ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontStacks) GetParagraph() []string
func (*BrandDesignSystemTypographyFontStacks) MarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontStacks) MarshalJSON() ([]byte, error)
func (*BrandDesignSystemTypographyFontStacks) SetBody ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontStacks) SetBody(body []string)
SetBody sets the Body field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemTypographyFontStacks) SetHeading ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontStacks) SetHeading(heading []string)
SetHeading sets the Heading field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemTypographyFontStacks) SetParagraph ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontStacks) SetParagraph(paragraph []string)
SetParagraph sets the Paragraph field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDesignSystemTypographyFontStacks) String ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontStacks) String() string
func (*BrandDesignSystemTypographyFontStacks) UnmarshalJSON ¶ added in v0.2.0
func (b *BrandDesignSystemTypographyFontStacks) UnmarshalJSON(data []byte) error
type BrandDto ¶
type BrandDto struct {
// Ignore a cached profile and fetch the website again
Refresh *bool `json:"refresh,omitempty" url:"-"`
// Maximum time to spend building the profile, in milliseconds
Timeout *float64 `json:"timeout,omitempty" url:"-"`
// The public website whose brand profile should be extracted
URL string `json:"url" url:"-"`
// contains filtered or unexported fields
}
func (*BrandDto) MarshalJSON ¶
func (*BrandDto) SetRefresh ¶
SetRefresh sets the Refresh field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDto) SetTimeout ¶
SetTimeout sets the Timeout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDto) SetURL ¶
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandDto) UnmarshalJSON ¶
type BrandProfile ¶
type BrandProfile struct {
Branding *BrandDesignSystem `json:"branding,omitempty" url:"branding,omitempty"`
Colors []*BrandProfileColorsItem `json:"colors" url:"colors"`
Description *string `json:"description,omitempty" url:"description,omitempty"`
Domain string `json:"domain" url:"domain"`
Fonts []*BrandProfileFontsItem `json:"fonts" url:"fonts"`
Images []*BrandAsset `json:"images" url:"images"`
Language *string `json:"language,omitempty" url:"language,omitempty"`
Logos []*BrandAsset `json:"logos" url:"logos"`
Name string `json:"name" url:"name"`
Socials []*BrandProfileSocialsItem `json:"socials" url:"socials"`
Tagline *string `json:"tagline,omitempty" url:"tagline,omitempty"`
// contains filtered or unexported fields
}
func (*BrandProfile) GetBranding ¶ added in v0.2.0
func (b *BrandProfile) GetBranding() *BrandDesignSystem
func (*BrandProfile) GetColors ¶
func (b *BrandProfile) GetColors() []*BrandProfileColorsItem
func (*BrandProfile) GetDescription ¶
func (b *BrandProfile) GetDescription() *string
func (*BrandProfile) GetDomain ¶
func (b *BrandProfile) GetDomain() string
func (*BrandProfile) GetExtraProperties ¶
func (b *BrandProfile) GetExtraProperties() map[string]interface{}
func (*BrandProfile) GetFonts ¶
func (b *BrandProfile) GetFonts() []*BrandProfileFontsItem
func (*BrandProfile) GetImages ¶
func (b *BrandProfile) GetImages() []*BrandAsset
func (*BrandProfile) GetLanguage ¶
func (b *BrandProfile) GetLanguage() *string
func (*BrandProfile) GetLogos ¶
func (b *BrandProfile) GetLogos() []*BrandAsset
func (*BrandProfile) GetName ¶
func (b *BrandProfile) GetName() string
func (*BrandProfile) GetSocials ¶
func (b *BrandProfile) GetSocials() []*BrandProfileSocialsItem
func (*BrandProfile) GetTagline ¶
func (b *BrandProfile) GetTagline() *string
func (*BrandProfile) MarshalJSON ¶
func (b *BrandProfile) MarshalJSON() ([]byte, error)
func (*BrandProfile) SetBranding ¶ added in v0.2.0
func (b *BrandProfile) SetBranding(branding *BrandDesignSystem)
SetBranding sets the Branding field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfile) SetColors ¶
func (b *BrandProfile) SetColors(colors []*BrandProfileColorsItem)
SetColors sets the Colors field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfile) SetDescription ¶
func (b *BrandProfile) SetDescription(description *string)
SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfile) SetDomain ¶
func (b *BrandProfile) SetDomain(domain string)
SetDomain sets the Domain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfile) SetFonts ¶
func (b *BrandProfile) SetFonts(fonts []*BrandProfileFontsItem)
SetFonts sets the Fonts field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfile) SetImages ¶
func (b *BrandProfile) SetImages(images []*BrandAsset)
SetImages sets the Images field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfile) SetLanguage ¶
func (b *BrandProfile) SetLanguage(language *string)
SetLanguage sets the Language field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfile) SetLogos ¶
func (b *BrandProfile) SetLogos(logos []*BrandAsset)
SetLogos sets the Logos field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfile) SetName ¶
func (b *BrandProfile) SetName(name string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfile) SetSocials ¶
func (b *BrandProfile) SetSocials(socials []*BrandProfileSocialsItem)
SetSocials sets the Socials field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfile) SetTagline ¶
func (b *BrandProfile) SetTagline(tagline *string)
SetTagline sets the Tagline field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfile) String ¶
func (b *BrandProfile) String() string
func (*BrandProfile) UnmarshalJSON ¶
func (b *BrandProfile) UnmarshalJSON(data []byte) error
type BrandProfileColorsItem ¶
type BrandProfileColorsItem struct {
Hex string `json:"hex" url:"hex"`
Name *string `json:"name,omitempty" url:"name,omitempty"`
// contains filtered or unexported fields
}
func (*BrandProfileColorsItem) GetExtraProperties ¶
func (b *BrandProfileColorsItem) GetExtraProperties() map[string]interface{}
func (*BrandProfileColorsItem) GetHex ¶
func (b *BrandProfileColorsItem) GetHex() string
func (*BrandProfileColorsItem) GetName ¶
func (b *BrandProfileColorsItem) GetName() *string
func (*BrandProfileColorsItem) MarshalJSON ¶
func (b *BrandProfileColorsItem) MarshalJSON() ([]byte, error)
func (*BrandProfileColorsItem) SetHex ¶
func (b *BrandProfileColorsItem) SetHex(hex string)
SetHex sets the Hex field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfileColorsItem) SetName ¶
func (b *BrandProfileColorsItem) SetName(name *string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfileColorsItem) String ¶
func (b *BrandProfileColorsItem) String() string
func (*BrandProfileColorsItem) UnmarshalJSON ¶
func (b *BrandProfileColorsItem) UnmarshalJSON(data []byte) error
type BrandProfileFontsItem ¶
type BrandProfileFontsItem struct {
Family string `json:"family" url:"family"`
Weights []string `json:"weights,omitempty" url:"weights,omitempty"`
// contains filtered or unexported fields
}
func (*BrandProfileFontsItem) GetExtraProperties ¶
func (b *BrandProfileFontsItem) GetExtraProperties() map[string]interface{}
func (*BrandProfileFontsItem) GetFamily ¶
func (b *BrandProfileFontsItem) GetFamily() string
func (*BrandProfileFontsItem) GetWeights ¶
func (b *BrandProfileFontsItem) GetWeights() []string
func (*BrandProfileFontsItem) MarshalJSON ¶
func (b *BrandProfileFontsItem) MarshalJSON() ([]byte, error)
func (*BrandProfileFontsItem) SetFamily ¶
func (b *BrandProfileFontsItem) SetFamily(family string)
SetFamily sets the Family field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfileFontsItem) SetWeights ¶
func (b *BrandProfileFontsItem) SetWeights(weights []string)
SetWeights sets the Weights field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfileFontsItem) String ¶
func (b *BrandProfileFontsItem) String() string
func (*BrandProfileFontsItem) UnmarshalJSON ¶
func (b *BrandProfileFontsItem) UnmarshalJSON(data []byte) error
type BrandProfileSocialsItem ¶
type BrandProfileSocialsItem struct {
Network string `json:"network" url:"network"`
URL string `json:"url" url:"url"`
// contains filtered or unexported fields
}
func (*BrandProfileSocialsItem) GetExtraProperties ¶
func (b *BrandProfileSocialsItem) GetExtraProperties() map[string]interface{}
func (*BrandProfileSocialsItem) GetNetwork ¶
func (b *BrandProfileSocialsItem) GetNetwork() string
func (*BrandProfileSocialsItem) GetURL ¶
func (b *BrandProfileSocialsItem) GetURL() string
func (*BrandProfileSocialsItem) MarshalJSON ¶
func (b *BrandProfileSocialsItem) MarshalJSON() ([]byte, error)
func (*BrandProfileSocialsItem) SetNetwork ¶
func (b *BrandProfileSocialsItem) SetNetwork(network string)
SetNetwork sets the Network field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfileSocialsItem) SetURL ¶
func (b *BrandProfileSocialsItem) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandProfileSocialsItem) String ¶
func (b *BrandProfileSocialsItem) String() string
func (*BrandProfileSocialsItem) UnmarshalJSON ¶
func (b *BrandProfileSocialsItem) UnmarshalJSON(data []byte) error
type BrandResponse ¶
type BrandResponse struct {
Data *BrandResponseData `json:"data" url:"data"`
Success bool `json:"success" url:"success"`
// contains filtered or unexported fields
}
func (*BrandResponse) GetData ¶
func (b *BrandResponse) GetData() *BrandResponseData
func (*BrandResponse) GetExtraProperties ¶
func (b *BrandResponse) GetExtraProperties() map[string]interface{}
func (*BrandResponse) GetSuccess ¶
func (b *BrandResponse) GetSuccess() bool
func (*BrandResponse) MarshalJSON ¶
func (b *BrandResponse) MarshalJSON() ([]byte, error)
func (*BrandResponse) SetData ¶
func (b *BrandResponse) SetData(data *BrandResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandResponse) SetSuccess ¶
func (b *BrandResponse) SetSuccess(success bool)
SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandResponse) String ¶
func (b *BrandResponse) String() string
func (*BrandResponse) UnmarshalJSON ¶
func (b *BrandResponse) UnmarshalJSON(data []byte) error
type BrandResponseData ¶
type BrandResponseData struct {
Brand *BrandProfile `json:"brand" url:"brand"`
Meta *BrandResponseDataMeta `json:"meta" url:"meta"`
// contains filtered or unexported fields
}
func (*BrandResponseData) GetBrand ¶
func (b *BrandResponseData) GetBrand() *BrandProfile
func (*BrandResponseData) GetExtraProperties ¶
func (b *BrandResponseData) GetExtraProperties() map[string]interface{}
func (*BrandResponseData) GetMeta ¶
func (b *BrandResponseData) GetMeta() *BrandResponseDataMeta
func (*BrandResponseData) MarshalJSON ¶
func (b *BrandResponseData) MarshalJSON() ([]byte, error)
func (*BrandResponseData) SetBrand ¶
func (b *BrandResponseData) SetBrand(brand *BrandProfile)
SetBrand sets the Brand field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandResponseData) SetMeta ¶
func (b *BrandResponseData) SetMeta(meta *BrandResponseDataMeta)
SetMeta sets the Meta field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandResponseData) String ¶
func (b *BrandResponseData) String() string
func (*BrandResponseData) UnmarshalJSON ¶
func (b *BrandResponseData) UnmarshalJSON(data []byte) error
type BrandResponseDataMeta ¶
type BrandResponseDataMeta struct {
Cached bool `json:"cached" url:"cached"`
CreditsUsed int `json:"creditsUsed" url:"creditsUsed"`
FetchedAt time.Time `json:"fetchedAt" url:"fetchedAt"`
SourceURL string `json:"sourceUrl" url:"sourceUrl"`
// contains filtered or unexported fields
}
func (*BrandResponseDataMeta) GetCached ¶
func (b *BrandResponseDataMeta) GetCached() bool
func (*BrandResponseDataMeta) GetCreditsUsed ¶
func (b *BrandResponseDataMeta) GetCreditsUsed() int
func (*BrandResponseDataMeta) GetExtraProperties ¶
func (b *BrandResponseDataMeta) GetExtraProperties() map[string]interface{}
func (*BrandResponseDataMeta) GetFetchedAt ¶
func (b *BrandResponseDataMeta) GetFetchedAt() time.Time
func (*BrandResponseDataMeta) GetSourceURL ¶
func (b *BrandResponseDataMeta) GetSourceURL() string
func (*BrandResponseDataMeta) MarshalJSON ¶
func (b *BrandResponseDataMeta) MarshalJSON() ([]byte, error)
func (*BrandResponseDataMeta) SetCached ¶
func (b *BrandResponseDataMeta) SetCached(cached bool)
SetCached sets the Cached field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandResponseDataMeta) SetCreditsUsed ¶
func (b *BrandResponseDataMeta) SetCreditsUsed(creditsUsed int)
SetCreditsUsed sets the CreditsUsed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandResponseDataMeta) SetFetchedAt ¶
func (b *BrandResponseDataMeta) SetFetchedAt(fetchedAt time.Time)
SetFetchedAt sets the FetchedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandResponseDataMeta) SetSourceURL ¶
func (b *BrandResponseDataMeta) SetSourceURL(sourceURL string)
SetSourceURL sets the SourceURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BrandResponseDataMeta) String ¶
func (b *BrandResponseDataMeta) String() string
func (*BrandResponseDataMeta) UnmarshalJSON ¶
func (b *BrandResponseDataMeta) UnmarshalJSON(data []byte) error
type CancelJobResponse ¶
type CancelJobResponse struct {
Data *CancelJobResponseData `json:"data" url:"data"`
Success bool `json:"success" url:"success"`
// contains filtered or unexported fields
}
func (*CancelJobResponse) GetData ¶
func (c *CancelJobResponse) GetData() *CancelJobResponseData
func (*CancelJobResponse) GetExtraProperties ¶
func (c *CancelJobResponse) GetExtraProperties() map[string]interface{}
func (*CancelJobResponse) GetSuccess ¶
func (c *CancelJobResponse) GetSuccess() bool
func (*CancelJobResponse) MarshalJSON ¶
func (c *CancelJobResponse) MarshalJSON() ([]byte, error)
func (*CancelJobResponse) SetData ¶
func (c *CancelJobResponse) SetData(data *CancelJobResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CancelJobResponse) SetSuccess ¶
func (c *CancelJobResponse) SetSuccess(success bool)
SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CancelJobResponse) String ¶
func (c *CancelJobResponse) String() string
func (*CancelJobResponse) UnmarshalJSON ¶
func (c *CancelJobResponse) UnmarshalJSON(data []byte) error
type CancelJobResponseData ¶
type CancelJobResponseData struct {
ID string `json:"id" url:"id"`
Status string `json:"status" url:"status"`
// contains filtered or unexported fields
}
func (*CancelJobResponseData) GetExtraProperties ¶
func (c *CancelJobResponseData) GetExtraProperties() map[string]interface{}
func (*CancelJobResponseData) GetID ¶
func (c *CancelJobResponseData) GetID() string
func (*CancelJobResponseData) GetStatus ¶
func (c *CancelJobResponseData) GetStatus() string
func (*CancelJobResponseData) MarshalJSON ¶
func (c *CancelJobResponseData) MarshalJSON() ([]byte, error)
func (*CancelJobResponseData) SetID ¶
func (c *CancelJobResponseData) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CancelJobResponseData) SetStatus ¶
func (c *CancelJobResponseData) SetStatus(status string)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CancelJobResponseData) String ¶
func (c *CancelJobResponseData) String() string
func (*CancelJobResponseData) UnmarshalJSON ¶
func (c *CancelJobResponseData) UnmarshalJSON(data []byte) error
type CancelJobsRequest ¶
type CancelJobsRequest struct {
ID string `json:"-" url:"-"`
// contains filtered or unexported fields
}
func (*CancelJobsRequest) SetID ¶
func (c *CancelJobsRequest) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
type ChangeTrackingFormatDto ¶
type ChangeTrackingFormatDto struct {
// Change detection modes
Modes []string `json:"modes,omitempty" url:"modes,omitempty"`
// Schema for structured change tracking
Schema map[string]any `json:"schema,omitempty" url:"schema,omitempty"`
// Tag to identify this tracking session
Tag *string `json:"tag,omitempty" url:"tag,omitempty"`
// Format type
Type ChangeTrackingFormatDtoType `json:"type" url:"type"`
// contains filtered or unexported fields
}
func (*ChangeTrackingFormatDto) GetExtraProperties ¶
func (c *ChangeTrackingFormatDto) GetExtraProperties() map[string]interface{}
func (*ChangeTrackingFormatDto) GetModes ¶
func (c *ChangeTrackingFormatDto) GetModes() []string
func (*ChangeTrackingFormatDto) GetSchema ¶
func (c *ChangeTrackingFormatDto) GetSchema() map[string]any
func (*ChangeTrackingFormatDto) GetTag ¶
func (c *ChangeTrackingFormatDto) GetTag() *string
func (*ChangeTrackingFormatDto) GetType ¶
func (c *ChangeTrackingFormatDto) GetType() ChangeTrackingFormatDtoType
func (*ChangeTrackingFormatDto) MarshalJSON ¶
func (c *ChangeTrackingFormatDto) MarshalJSON() ([]byte, error)
func (*ChangeTrackingFormatDto) SetModes ¶
func (c *ChangeTrackingFormatDto) SetModes(modes []string)
SetModes sets the Modes field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChangeTrackingFormatDto) SetSchema ¶
func (c *ChangeTrackingFormatDto) SetSchema(schema map[string]any)
SetSchema sets the Schema field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChangeTrackingFormatDto) SetTag ¶
func (c *ChangeTrackingFormatDto) SetTag(tag *string)
SetTag sets the Tag field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChangeTrackingFormatDto) SetType ¶
func (c *ChangeTrackingFormatDto) SetType(type_ ChangeTrackingFormatDtoType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChangeTrackingFormatDto) String ¶
func (c *ChangeTrackingFormatDto) String() string
func (*ChangeTrackingFormatDto) UnmarshalJSON ¶
func (c *ChangeTrackingFormatDto) UnmarshalJSON(data []byte) error
type ChangeTrackingFormatDtoType ¶
type ChangeTrackingFormatDtoType string
Format type
const (
ChangeTrackingFormatDtoTypeChangeTracking ChangeTrackingFormatDtoType = "changeTracking"
)
func NewChangeTrackingFormatDtoTypeFromString ¶
func NewChangeTrackingFormatDtoTypeFromString(s string) (ChangeTrackingFormatDtoType, error)
func (ChangeTrackingFormatDtoType) Ptr ¶
func (c ChangeTrackingFormatDtoType) Ptr() *ChangeTrackingFormatDtoType
type CrawlDto ¶
type CrawlDto struct {
// Whether to allow crawling external domains
AllowExternalLinks *bool `json:"allowExternalLinks,omitempty" url:"-"`
// Whether to allow crawling subdomains
AllowSubdomains *bool `json:"allowSubdomains,omitempty" url:"-"`
// Whether to crawl entire domain or just subtree
CrawlEntireDomain *bool `json:"crawlEntireDomain,omitempty" url:"-"`
// Deduplicate similar URLs using intelligent matching
DeduplicateSimilarUrLs *bool `json:"deduplicateSimilarURLs,omitempty" url:"-"`
// Delay between page scrapes in milliseconds
Delay *float64 `json:"delay,omitempty" url:"-"`
// Regex patterns to exclude paths
ExcludePaths []string `json:"excludePaths,omitempty" url:"-"`
// Ignore query parameters when deduplicating URLs
IgnoreQueryParameters *bool `json:"ignoreQueryParameters,omitempty" url:"-"`
// Regex patterns to include paths
IncludePaths []string `json:"includePaths,omitempty" url:"-"`
// Maximum number of pages to crawl
Limit *float64 `json:"limit,omitempty" url:"-"`
// Maximum number of concurrent scrapes for this crawl
MaxConcurrency *float64 `json:"maxConcurrency,omitempty" url:"-"`
// Maximum depth for URL discovery
MaxDiscoveryDepth *float64 `json:"maxDiscoveryDepth,omitempty" url:"-"`
// Natural language instructions for crawl configuration
Prompt *string `json:"prompt,omitempty" url:"-"`
// Scrape options to apply to each page. actions accepts at most 25 bounded browser actions. zeroDataRetention: true is currently rejected with 400 ZERO_DATA_RETENTION_NOT_SUPPORTED.
ScrapeOptions map[string]any `json:"scrapeOptions,omitempty" url:"-"`
// Sitemap handling strategy
Sitemap *CrawlDtoSitemap `json:"sitemap,omitempty" url:"-"`
// Starting URL to crawl
URL string `json:"url" url:"-"`
// Webhook configuration
Webhook *WebhookConfigDto `json:"webhook,omitempty" url:"-"`
// Reserved for a future zero-data-retention mode. true is currently rejected with 400 ZERO_DATA_RETENTION_NOT_SUPPORTED; omit or use false.
ZeroDataRetention *bool `json:"zeroDataRetention,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*CrawlDto) MarshalJSON ¶
func (*CrawlDto) SetAllowExternalLinks ¶
SetAllowExternalLinks sets the AllowExternalLinks field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) SetAllowSubdomains ¶
SetAllowSubdomains sets the AllowSubdomains field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) SetCrawlEntireDomain ¶
SetCrawlEntireDomain sets the CrawlEntireDomain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) SetDeduplicateSimilarUrLs ¶
SetDeduplicateSimilarUrLs sets the DeduplicateSimilarUrLs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) SetDelay ¶
SetDelay sets the Delay field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) SetExcludePaths ¶
SetExcludePaths sets the ExcludePaths field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) SetIgnoreQueryParameters ¶
SetIgnoreQueryParameters sets the IgnoreQueryParameters field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) SetIncludePaths ¶
SetIncludePaths sets the IncludePaths field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) SetLimit ¶
SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) SetMaxConcurrency ¶
SetMaxConcurrency sets the MaxConcurrency field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) SetMaxDiscoveryDepth ¶
SetMaxDiscoveryDepth sets the MaxDiscoveryDepth field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) SetPrompt ¶
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) SetScrapeOptions ¶
SetScrapeOptions sets the ScrapeOptions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) SetSitemap ¶
func (c *CrawlDto) SetSitemap(sitemap *CrawlDtoSitemap)
SetSitemap sets the Sitemap field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) SetURL ¶
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) SetWebhook ¶
func (c *CrawlDto) SetWebhook(webhook *WebhookConfigDto)
SetWebhook sets the Webhook field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) SetZeroDataRetention ¶
SetZeroDataRetention sets the ZeroDataRetention field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CrawlDto) UnmarshalJSON ¶
type CrawlDtoSitemap ¶
type CrawlDtoSitemap string
Sitemap handling strategy
const ( CrawlDtoSitemapInclude CrawlDtoSitemap = "include" CrawlDtoSitemapSkip CrawlDtoSitemap = "skip" CrawlDtoSitemapOnly CrawlDtoSitemap = "only" )
func NewCrawlDtoSitemapFromString ¶
func NewCrawlDtoSitemapFromString(s string) (CrawlDtoSitemap, error)
func (CrawlDtoSitemap) Ptr ¶
func (c CrawlDtoSitemap) Ptr() *CrawlDtoSitemap
type CreateWebhookDto ¶
type CreateWebhookDto struct {
// Event types to subscribe to
Events []string `json:"events" url:"-"`
// Webhook URL to send events to
URL string `json:"url" url:"-"`
// contains filtered or unexported fields
}
func (*CreateWebhookDto) MarshalJSON ¶
func (c *CreateWebhookDto) MarshalJSON() ([]byte, error)
func (*CreateWebhookDto) SetEvents ¶
func (c *CreateWebhookDto) SetEvents(events []string)
SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CreateWebhookDto) SetURL ¶
func (c *CreateWebhookDto) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*CreateWebhookDto) UnmarshalJSON ¶
func (c *CreateWebhookDto) UnmarshalJSON(data []byte) error
type DeleteWebhooksRequest ¶
type DeleteWebhooksRequest struct {
ID string `json:"-" url:"-"`
// contains filtered or unexported fields
}
func (*DeleteWebhooksRequest) SetID ¶
func (d *DeleteWebhooksRequest) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
type ExtractDto ¶
type ExtractDto struct {
// Agent configuration
Agent *AgentConfigDto `json:"agent,omitempty" url:"-"`
// Enable web search for URL discovery
EnableWebSearch *bool `json:"enableWebSearch,omitempty" url:"-"`
// Ignore invalid URLs and process remaining valid ones
IgnoreInvalidUrLs *bool `json:"ignoreInvalidURLs,omitempty" url:"-"`
// Ignore sitemap during URL discovery
IgnoreSitemap *bool `json:"ignoreSitemap,omitempty" url:"-"`
// Include subdomains in extraction
IncludeSubdomains *bool `json:"includeSubdomains,omitempty" url:"-"`
// Natural language prompt describing what to extract. Maximum 16384 UTF-8 bytes.
Prompt string `json:"prompt" url:"-"`
// JSON Schema for structured output. Serialized schema is limited to 65536 UTF-8 bytes.
Schema map[string]any `json:"schema,omitempty" url:"-"`
// Scrape options for each URL. zeroDataRetention: true is currently rejected with 400 ZERO_DATA_RETENTION_NOT_SUPPORTED.
ScrapeOptions map[string]any `json:"scrapeOptions,omitempty" url:"-"`
// Include source citations in response
ShowSources *bool `json:"showSources,omitempty" url:"-"`
// 1–20 unique public HTTP(S) URLs. May be omitted only when enableWebSearch is true. Each URL is limited to 2048 UTF-8 bytes.
URLs []string `json:"urls,omitempty" url:"-"`
// Webhook configuration
Webhook *ExtractWebhookConfigDto `json:"webhook,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*ExtractDto) MarshalJSON ¶
func (e *ExtractDto) MarshalJSON() ([]byte, error)
func (*ExtractDto) SetAgent ¶
func (e *ExtractDto) SetAgent(agent *AgentConfigDto)
SetAgent sets the Agent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ExtractDto) SetEnableWebSearch ¶
func (e *ExtractDto) SetEnableWebSearch(enableWebSearch *bool)
SetEnableWebSearch sets the EnableWebSearch field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ExtractDto) SetIgnoreInvalidUrLs ¶
func (e *ExtractDto) SetIgnoreInvalidUrLs(ignoreInvalidUrLs *bool)
SetIgnoreInvalidUrLs sets the IgnoreInvalidUrLs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ExtractDto) SetIgnoreSitemap ¶
func (e *ExtractDto) SetIgnoreSitemap(ignoreSitemap *bool)
SetIgnoreSitemap sets the IgnoreSitemap field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ExtractDto) SetIncludeSubdomains ¶
func (e *ExtractDto) SetIncludeSubdomains(includeSubdomains *bool)
SetIncludeSubdomains sets the IncludeSubdomains field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ExtractDto) SetPrompt ¶
func (e *ExtractDto) SetPrompt(prompt string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ExtractDto) SetSchema ¶
func (e *ExtractDto) SetSchema(schema map[string]any)
SetSchema sets the Schema field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ExtractDto) SetScrapeOptions ¶
func (e *ExtractDto) SetScrapeOptions(scrapeOptions map[string]any)
SetScrapeOptions sets the ScrapeOptions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ExtractDto) SetShowSources ¶
func (e *ExtractDto) SetShowSources(showSources *bool)
SetShowSources sets the ShowSources field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ExtractDto) SetURLs ¶
func (e *ExtractDto) SetURLs(urls []string)
SetURLs sets the URLs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ExtractDto) SetWebhook ¶
func (e *ExtractDto) SetWebhook(webhook *ExtractWebhookConfigDto)
SetWebhook sets the Webhook field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ExtractDto) UnmarshalJSON ¶
func (e *ExtractDto) UnmarshalJSON(data []byte) error
type ExtractWebhookConfigDto ¶
type ExtractWebhookConfigDto struct {
// Events to subscribe to
Events []string `json:"events,omitempty" url:"events,omitempty"`
// Custom metadata
Metadata map[string]any `json:"metadata,omitempty" url:"metadata,omitempty"`
// Optional secret used to sign direct webhook deliveries
Secret *string `json:"secret,omitempty" url:"secret,omitempty"`
// Webhook URL
URL string `json:"url" url:"url"`
// contains filtered or unexported fields
}
func (*ExtractWebhookConfigDto) GetEvents ¶
func (e *ExtractWebhookConfigDto) GetEvents() []string
func (*ExtractWebhookConfigDto) GetExtraProperties ¶
func (e *ExtractWebhookConfigDto) GetExtraProperties() map[string]interface{}
func (*ExtractWebhookConfigDto) GetMetadata ¶
func (e *ExtractWebhookConfigDto) GetMetadata() map[string]any
func (*ExtractWebhookConfigDto) GetSecret ¶
func (e *ExtractWebhookConfigDto) GetSecret() *string
func (*ExtractWebhookConfigDto) GetURL ¶
func (e *ExtractWebhookConfigDto) GetURL() string
func (*ExtractWebhookConfigDto) MarshalJSON ¶
func (e *ExtractWebhookConfigDto) MarshalJSON() ([]byte, error)
func (*ExtractWebhookConfigDto) SetEvents ¶
func (e *ExtractWebhookConfigDto) SetEvents(events []string)
SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ExtractWebhookConfigDto) SetMetadata ¶
func (e *ExtractWebhookConfigDto) SetMetadata(metadata map[string]any)
SetMetadata sets the Metadata field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ExtractWebhookConfigDto) SetSecret ¶
func (e *ExtractWebhookConfigDto) SetSecret(secret *string)
SetSecret sets the Secret field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ExtractWebhookConfigDto) SetURL ¶
func (e *ExtractWebhookConfigDto) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ExtractWebhookConfigDto) String ¶
func (e *ExtractWebhookConfigDto) String() string
func (*ExtractWebhookConfigDto) UnmarshalJSON ¶
func (e *ExtractWebhookConfigDto) UnmarshalJSON(data []byte) error
type FileParam ¶
FileParam is a file type suitable for multipart/form-data uploads.
func NewFileParam ¶
func NewFileParam( reader io.Reader, filename string, contentType string, opts ...FileParamOption, ) *FileParam
NewFileParam returns a *FileParam type suitable for multipart/form-data uploads. All file upload endpoints accept a simple io.Reader, which is usually created by opening a file via os.Open.
However, some endpoints require additional metadata about the file such as a specific Content-Type or custom filename. FileParam makes it easier to create the correct type signature for these endpoints.
func (*FileParam) ContentType ¶
type FileParamOption ¶
type FileParamOption interface {
// contains filtered or unexported methods
}
FileParamOption adapts the behavior of the FileParam. No options are implemented yet, but this interface allows for future extensibility.
type GetJobsRequest ¶
type GetJobsRequest struct {
ID string `json:"-" url:"-"`
Page *float64 `json:"-" url:"page,omitempty"`
Limit *float64 `json:"-" url:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*GetJobsRequest) SetID ¶
func (g *GetJobsRequest) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetJobsRequest) SetLimit ¶
func (g *GetJobsRequest) SetLimit(limit *float64)
SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetJobsRequest) SetPage ¶
func (g *GetJobsRequest) SetPage(page *float64)
SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
type GetWebhooksRequest ¶
type GetWebhooksRequest struct {
ID string `json:"-" url:"-"`
// contains filtered or unexported fields
}
func (*GetWebhooksRequest) SetID ¶
func (g *GetWebhooksRequest) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
type JSONFormatDto ¶
type JSONFormatDto struct {
// Natural language prompt for extraction guidance
Prompt *string `json:"prompt,omitempty" url:"prompt,omitempty"`
// JSON schema for structured extraction
Schema map[string]any `json:"schema" url:"schema"`
// Format type
Type JSONFormatDtoType `json:"type" url:"type"`
// contains filtered or unexported fields
}
func (*JSONFormatDto) GetExtraProperties ¶
func (j *JSONFormatDto) GetExtraProperties() map[string]interface{}
func (*JSONFormatDto) GetPrompt ¶
func (j *JSONFormatDto) GetPrompt() *string
func (*JSONFormatDto) GetSchema ¶
func (j *JSONFormatDto) GetSchema() map[string]any
func (*JSONFormatDto) GetType ¶
func (j *JSONFormatDto) GetType() JSONFormatDtoType
func (*JSONFormatDto) MarshalJSON ¶
func (j *JSONFormatDto) MarshalJSON() ([]byte, error)
func (*JSONFormatDto) SetPrompt ¶
func (j *JSONFormatDto) SetPrompt(prompt *string)
SetPrompt sets the Prompt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JSONFormatDto) SetSchema ¶
func (j *JSONFormatDto) SetSchema(schema map[string]any)
SetSchema sets the Schema field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JSONFormatDto) SetType ¶
func (j *JSONFormatDto) SetType(type_ JSONFormatDtoType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JSONFormatDto) String ¶
func (j *JSONFormatDto) String() string
func (*JSONFormatDto) UnmarshalJSON ¶
func (j *JSONFormatDto) UnmarshalJSON(data []byte) error
type JSONFormatDtoType ¶
type JSONFormatDtoType string
Format type
const (
JSONFormatDtoTypeJSON JSONFormatDtoType = "json"
)
func NewJSONFormatDtoTypeFromString ¶
func NewJSONFormatDtoTypeFromString(s string) (JSONFormatDtoType, error)
func (JSONFormatDtoType) Ptr ¶
func (j JSONFormatDtoType) Ptr() *JSONFormatDtoType
type JobCreatedResponse ¶
type JobCreatedResponse struct {
ID string `json:"id" url:"id"`
InvalidUrLs []string `json:"invalidURLs,omitempty" url:"invalidURLs,omitempty"`
Success bool `json:"success" url:"success"`
URL string `json:"url" url:"url"`
// contains filtered or unexported fields
}
func (*JobCreatedResponse) GetExtraProperties ¶
func (j *JobCreatedResponse) GetExtraProperties() map[string]interface{}
func (*JobCreatedResponse) GetID ¶
func (j *JobCreatedResponse) GetID() string
func (*JobCreatedResponse) GetInvalidUrLs ¶
func (j *JobCreatedResponse) GetInvalidUrLs() []string
func (*JobCreatedResponse) GetSuccess ¶
func (j *JobCreatedResponse) GetSuccess() bool
func (*JobCreatedResponse) GetURL ¶
func (j *JobCreatedResponse) GetURL() string
func (*JobCreatedResponse) MarshalJSON ¶
func (j *JobCreatedResponse) MarshalJSON() ([]byte, error)
func (*JobCreatedResponse) SetID ¶
func (j *JobCreatedResponse) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCreatedResponse) SetInvalidUrLs ¶
func (j *JobCreatedResponse) SetInvalidUrLs(invalidUrLs []string)
SetInvalidUrLs sets the InvalidUrLs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCreatedResponse) SetSuccess ¶
func (j *JobCreatedResponse) SetSuccess(success bool)
SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCreatedResponse) SetURL ¶
func (j *JobCreatedResponse) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobCreatedResponse) String ¶
func (j *JobCreatedResponse) String() string
func (*JobCreatedResponse) UnmarshalJSON ¶
func (j *JobCreatedResponse) UnmarshalJSON(data []byte) error
type JobResponse ¶
type JobResponse struct {
Data *JobResponseData `json:"data" url:"data"`
Success bool `json:"success" url:"success"`
// contains filtered or unexported fields
}
func (*JobResponse) GetData ¶
func (j *JobResponse) GetData() *JobResponseData
func (*JobResponse) GetExtraProperties ¶
func (j *JobResponse) GetExtraProperties() map[string]interface{}
func (*JobResponse) GetSuccess ¶
func (j *JobResponse) GetSuccess() bool
func (*JobResponse) MarshalJSON ¶
func (j *JobResponse) MarshalJSON() ([]byte, error)
func (*JobResponse) SetData ¶
func (j *JobResponse) SetData(data *JobResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponse) SetSuccess ¶
func (j *JobResponse) SetSuccess(success bool)
SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponse) String ¶
func (j *JobResponse) String() string
func (*JobResponse) UnmarshalJSON ¶
func (j *JobResponse) UnmarshalJSON(data []byte) error
type JobResponseData ¶
type JobResponseData struct {
Completed *int `json:"completed,omitempty" url:"completed,omitempty"`
CompletedAt *time.Time `json:"completedAt,omitempty" url:"completedAt,omitempty"`
CreatedAt time.Time `json:"createdAt" url:"createdAt"`
CreditsUsed int `json:"creditsUsed" url:"creditsUsed"`
Error *string `json:"error,omitempty" url:"error,omitempty"`
Failed *int `json:"failed,omitempty" url:"failed,omitempty"`
ID string `json:"id" url:"id"`
StartedAt *time.Time `json:"startedAt,omitempty" url:"startedAt,omitempty"`
Status string `json:"status" url:"status"`
Total int `json:"total" url:"total"`
Type JobSummaryType `json:"type" url:"type"`
Errors []*JobResponseDataErrorsItem `json:"errors" url:"errors"`
Result any `json:"result,omitempty" url:"result,omitempty"`
ResultPagination *Pagination `json:"resultPagination" url:"resultPagination"`
Results []map[string]any `json:"results" url:"results"`
// contains filtered or unexported fields
}
func (*JobResponseData) GetCompleted ¶
func (j *JobResponseData) GetCompleted() *int
func (*JobResponseData) GetCompletedAt ¶
func (j *JobResponseData) GetCompletedAt() *time.Time
func (*JobResponseData) GetCreatedAt ¶
func (j *JobResponseData) GetCreatedAt() time.Time
func (*JobResponseData) GetCreditsUsed ¶
func (j *JobResponseData) GetCreditsUsed() int
func (*JobResponseData) GetError ¶
func (j *JobResponseData) GetError() *string
func (*JobResponseData) GetErrors ¶
func (j *JobResponseData) GetErrors() []*JobResponseDataErrorsItem
func (*JobResponseData) GetExtraProperties ¶
func (j *JobResponseData) GetExtraProperties() map[string]interface{}
func (*JobResponseData) GetFailed ¶
func (j *JobResponseData) GetFailed() *int
func (*JobResponseData) GetID ¶
func (j *JobResponseData) GetID() string
func (*JobResponseData) GetResult ¶
func (j *JobResponseData) GetResult() any
func (*JobResponseData) GetResultPagination ¶
func (j *JobResponseData) GetResultPagination() *Pagination
func (*JobResponseData) GetResults ¶
func (j *JobResponseData) GetResults() []map[string]any
func (*JobResponseData) GetStartedAt ¶
func (j *JobResponseData) GetStartedAt() *time.Time
func (*JobResponseData) GetStatus ¶
func (j *JobResponseData) GetStatus() string
func (*JobResponseData) GetTotal ¶
func (j *JobResponseData) GetTotal() int
func (*JobResponseData) GetType ¶
func (j *JobResponseData) GetType() JobSummaryType
func (*JobResponseData) MarshalJSON ¶
func (j *JobResponseData) MarshalJSON() ([]byte, error)
func (*JobResponseData) SetCompleted ¶
func (j *JobResponseData) SetCompleted(completed *int)
SetCompleted sets the Completed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseData) SetCompletedAt ¶
func (j *JobResponseData) SetCompletedAt(completedAt *time.Time)
SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseData) SetCreatedAt ¶
func (j *JobResponseData) SetCreatedAt(createdAt time.Time)
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseData) SetCreditsUsed ¶
func (j *JobResponseData) SetCreditsUsed(creditsUsed int)
SetCreditsUsed sets the CreditsUsed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseData) SetError ¶
func (j *JobResponseData) SetError(error_ *string)
SetError sets the Error field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseData) SetErrors ¶
func (j *JobResponseData) SetErrors(errors []*JobResponseDataErrorsItem)
SetErrors sets the Errors field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseData) SetFailed ¶
func (j *JobResponseData) SetFailed(failed *int)
SetFailed sets the Failed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseData) SetID ¶
func (j *JobResponseData) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseData) SetResult ¶
func (j *JobResponseData) SetResult(result any)
SetResult sets the Result field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseData) SetResultPagination ¶
func (j *JobResponseData) SetResultPagination(resultPagination *Pagination)
SetResultPagination sets the ResultPagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseData) SetResults ¶
func (j *JobResponseData) SetResults(results []map[string]any)
SetResults sets the Results field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseData) SetStartedAt ¶
func (j *JobResponseData) SetStartedAt(startedAt *time.Time)
SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseData) SetStatus ¶
func (j *JobResponseData) SetStatus(status string)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseData) SetTotal ¶
func (j *JobResponseData) SetTotal(total int)
SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseData) SetType ¶
func (j *JobResponseData) SetType(type_ JobSummaryType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseData) String ¶
func (j *JobResponseData) String() string
func (*JobResponseData) UnmarshalJSON ¶
func (j *JobResponseData) UnmarshalJSON(data []byte) error
type JobResponseDataErrorsItem ¶
type JobResponseDataErrorsItem struct {
Error *string `json:"error,omitempty" url:"error,omitempty"`
URL *string `json:"url,omitempty" url:"url,omitempty"`
// contains filtered or unexported fields
}
func (*JobResponseDataErrorsItem) GetError ¶
func (j *JobResponseDataErrorsItem) GetError() *string
func (*JobResponseDataErrorsItem) GetExtraProperties ¶
func (j *JobResponseDataErrorsItem) GetExtraProperties() map[string]interface{}
func (*JobResponseDataErrorsItem) GetURL ¶
func (j *JobResponseDataErrorsItem) GetURL() *string
func (*JobResponseDataErrorsItem) MarshalJSON ¶
func (j *JobResponseDataErrorsItem) MarshalJSON() ([]byte, error)
func (*JobResponseDataErrorsItem) SetError ¶
func (j *JobResponseDataErrorsItem) SetError(error_ *string)
SetError sets the Error field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseDataErrorsItem) SetURL ¶
func (j *JobResponseDataErrorsItem) SetURL(url *string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobResponseDataErrorsItem) String ¶
func (j *JobResponseDataErrorsItem) String() string
func (*JobResponseDataErrorsItem) UnmarshalJSON ¶
func (j *JobResponseDataErrorsItem) UnmarshalJSON(data []byte) error
type JobSummary ¶
type JobSummary struct {
Completed *int `json:"completed,omitempty" url:"completed,omitempty"`
CompletedAt *time.Time `json:"completedAt,omitempty" url:"completedAt,omitempty"`
CreatedAt time.Time `json:"createdAt" url:"createdAt"`
CreditsUsed int `json:"creditsUsed" url:"creditsUsed"`
Error *string `json:"error,omitempty" url:"error,omitempty"`
Failed *int `json:"failed,omitempty" url:"failed,omitempty"`
ID string `json:"id" url:"id"`
StartedAt *time.Time `json:"startedAt,omitempty" url:"startedAt,omitempty"`
Status string `json:"status" url:"status"`
Total int `json:"total" url:"total"`
Type JobSummaryType `json:"type" url:"type"`
// contains filtered or unexported fields
}
func (*JobSummary) GetCompleted ¶
func (j *JobSummary) GetCompleted() *int
func (*JobSummary) GetCompletedAt ¶
func (j *JobSummary) GetCompletedAt() *time.Time
func (*JobSummary) GetCreatedAt ¶
func (j *JobSummary) GetCreatedAt() time.Time
func (*JobSummary) GetCreditsUsed ¶
func (j *JobSummary) GetCreditsUsed() int
func (*JobSummary) GetError ¶
func (j *JobSummary) GetError() *string
func (*JobSummary) GetExtraProperties ¶
func (j *JobSummary) GetExtraProperties() map[string]interface{}
func (*JobSummary) GetFailed ¶
func (j *JobSummary) GetFailed() *int
func (*JobSummary) GetID ¶
func (j *JobSummary) GetID() string
func (*JobSummary) GetStartedAt ¶
func (j *JobSummary) GetStartedAt() *time.Time
func (*JobSummary) GetStatus ¶
func (j *JobSummary) GetStatus() string
func (*JobSummary) GetTotal ¶
func (j *JobSummary) GetTotal() int
func (*JobSummary) GetType ¶
func (j *JobSummary) GetType() JobSummaryType
func (*JobSummary) MarshalJSON ¶
func (j *JobSummary) MarshalJSON() ([]byte, error)
func (*JobSummary) SetCompleted ¶
func (j *JobSummary) SetCompleted(completed *int)
SetCompleted sets the Completed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobSummary) SetCompletedAt ¶
func (j *JobSummary) SetCompletedAt(completedAt *time.Time)
SetCompletedAt sets the CompletedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobSummary) SetCreatedAt ¶
func (j *JobSummary) SetCreatedAt(createdAt time.Time)
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobSummary) SetCreditsUsed ¶
func (j *JobSummary) SetCreditsUsed(creditsUsed int)
SetCreditsUsed sets the CreditsUsed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobSummary) SetError ¶
func (j *JobSummary) SetError(error_ *string)
SetError sets the Error field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobSummary) SetFailed ¶
func (j *JobSummary) SetFailed(failed *int)
SetFailed sets the Failed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobSummary) SetID ¶
func (j *JobSummary) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobSummary) SetStartedAt ¶
func (j *JobSummary) SetStartedAt(startedAt *time.Time)
SetStartedAt sets the StartedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobSummary) SetStatus ¶
func (j *JobSummary) SetStatus(status string)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobSummary) SetTotal ¶
func (j *JobSummary) SetTotal(total int)
SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobSummary) SetType ¶
func (j *JobSummary) SetType(type_ JobSummaryType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*JobSummary) String ¶
func (j *JobSummary) String() string
func (*JobSummary) UnmarshalJSON ¶
func (j *JobSummary) UnmarshalJSON(data []byte) error
type JobSummaryType ¶
type JobSummaryType string
const ( JobSummaryTypeCrawl JobSummaryType = "crawl" JobSummaryTypeExtract JobSummaryType = "extract" )
func NewJobSummaryTypeFromString ¶
func NewJobSummaryTypeFromString(s string) (JobSummaryType, error)
func (JobSummaryType) Ptr ¶
func (j JobSummaryType) Ptr() *JobSummaryType
type ListJobsRequest ¶
type ListJobsRequest struct {
Type *ListJobsRequestType `json:"-" url:"type,omitempty"`
Status *ListJobsRequestStatus `json:"-" url:"status,omitempty"`
Page *float64 `json:"-" url:"page,omitempty"`
Limit *float64 `json:"-" url:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*ListJobsRequest) SetLimit ¶
func (l *ListJobsRequest) SetLimit(limit *float64)
SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsRequest) SetPage ¶
func (l *ListJobsRequest) SetPage(page *float64)
SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsRequest) SetStatus ¶
func (l *ListJobsRequest) SetStatus(status *ListJobsRequestStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsRequest) SetType ¶
func (l *ListJobsRequest) SetType(type_ *ListJobsRequestType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
type ListJobsRequestStatus ¶
type ListJobsRequestStatus string
const ( ListJobsRequestStatusPending ListJobsRequestStatus = "PENDING" ListJobsRequestStatusRunning ListJobsRequestStatus = "RUNNING" ListJobsRequestStatusCompleted ListJobsRequestStatus = "COMPLETED" ListJobsRequestStatusFailed ListJobsRequestStatus = "FAILED" ListJobsRequestStatusCancelled ListJobsRequestStatus = "CANCELLED" )
func NewListJobsRequestStatusFromString ¶
func NewListJobsRequestStatusFromString(s string) (ListJobsRequestStatus, error)
func (ListJobsRequestStatus) Ptr ¶
func (l ListJobsRequestStatus) Ptr() *ListJobsRequestStatus
type ListJobsRequestType ¶
type ListJobsRequestType string
const ( ListJobsRequestTypeCrawl ListJobsRequestType = "crawl" ListJobsRequestTypeExtract ListJobsRequestType = "extract" )
func NewListJobsRequestTypeFromString ¶
func NewListJobsRequestTypeFromString(s string) (ListJobsRequestType, error)
func (ListJobsRequestType) Ptr ¶
func (l ListJobsRequestType) Ptr() *ListJobsRequestType
type ListJobsResponse ¶
type ListJobsResponse struct {
Data *ListJobsResponseData `json:"data" url:"data"`
Success bool `json:"success" url:"success"`
// contains filtered or unexported fields
}
func (*ListJobsResponse) GetData ¶
func (l *ListJobsResponse) GetData() *ListJobsResponseData
func (*ListJobsResponse) GetExtraProperties ¶
func (l *ListJobsResponse) GetExtraProperties() map[string]interface{}
func (*ListJobsResponse) GetSuccess ¶
func (l *ListJobsResponse) GetSuccess() bool
func (*ListJobsResponse) MarshalJSON ¶
func (l *ListJobsResponse) MarshalJSON() ([]byte, error)
func (*ListJobsResponse) SetData ¶
func (l *ListJobsResponse) SetData(data *ListJobsResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsResponse) SetSuccess ¶
func (l *ListJobsResponse) SetSuccess(success bool)
SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsResponse) String ¶
func (l *ListJobsResponse) String() string
func (*ListJobsResponse) UnmarshalJSON ¶
func (l *ListJobsResponse) UnmarshalJSON(data []byte) error
type ListJobsResponseData ¶
type ListJobsResponseData struct {
Jobs []*JobSummary `json:"jobs" url:"jobs"`
Pagination *Pagination `json:"pagination" url:"pagination"`
// contains filtered or unexported fields
}
func (*ListJobsResponseData) GetExtraProperties ¶
func (l *ListJobsResponseData) GetExtraProperties() map[string]interface{}
func (*ListJobsResponseData) GetJobs ¶
func (l *ListJobsResponseData) GetJobs() []*JobSummary
func (*ListJobsResponseData) GetPagination ¶
func (l *ListJobsResponseData) GetPagination() *Pagination
func (*ListJobsResponseData) MarshalJSON ¶
func (l *ListJobsResponseData) MarshalJSON() ([]byte, error)
func (*ListJobsResponseData) SetJobs ¶
func (l *ListJobsResponseData) SetJobs(jobs []*JobSummary)
SetJobs sets the Jobs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsResponseData) SetPagination ¶
func (l *ListJobsResponseData) SetPagination(pagination *Pagination)
SetPagination sets the Pagination field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListJobsResponseData) String ¶
func (l *ListJobsResponseData) String() string
func (*ListJobsResponseData) UnmarshalJSON ¶
func (l *ListJobsResponseData) UnmarshalJSON(data []byte) error
type ListWebhooksResponse ¶
type ListWebhooksResponse struct {
Data []*Webhook `json:"data" url:"data"`
Success bool `json:"success" url:"success"`
// contains filtered or unexported fields
}
func (*ListWebhooksResponse) GetData ¶
func (l *ListWebhooksResponse) GetData() []*Webhook
func (*ListWebhooksResponse) GetExtraProperties ¶
func (l *ListWebhooksResponse) GetExtraProperties() map[string]interface{}
func (*ListWebhooksResponse) GetSuccess ¶
func (l *ListWebhooksResponse) GetSuccess() bool
func (*ListWebhooksResponse) MarshalJSON ¶
func (l *ListWebhooksResponse) MarshalJSON() ([]byte, error)
func (*ListWebhooksResponse) SetData ¶
func (l *ListWebhooksResponse) SetData(data []*Webhook)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListWebhooksResponse) SetSuccess ¶
func (l *ListWebhooksResponse) SetSuccess(success bool)
SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ListWebhooksResponse) String ¶
func (l *ListWebhooksResponse) String() string
func (*ListWebhooksResponse) UnmarshalJSON ¶
func (l *ListWebhooksResponse) UnmarshalJSON(data []byte) error
type LocationDto ¶
type LocationDto struct {
Country *string `json:"country,omitempty" url:"country,omitempty"`
Languages []string `json:"languages,omitempty" url:"languages,omitempty"`
// contains filtered or unexported fields
}
func (*LocationDto) GetCountry ¶
func (l *LocationDto) GetCountry() *string
func (*LocationDto) GetExtraProperties ¶
func (l *LocationDto) GetExtraProperties() map[string]interface{}
func (*LocationDto) GetLanguages ¶
func (l *LocationDto) GetLanguages() []string
func (*LocationDto) MarshalJSON ¶
func (l *LocationDto) MarshalJSON() ([]byte, error)
func (*LocationDto) SetCountry ¶
func (l *LocationDto) SetCountry(country *string)
SetCountry sets the Country field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*LocationDto) SetLanguages ¶
func (l *LocationDto) SetLanguages(languages []string)
SetLanguages sets the Languages field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*LocationDto) String ¶
func (l *LocationDto) String() string
func (*LocationDto) UnmarshalJSON ¶
func (l *LocationDto) UnmarshalJSON(data []byte) error
type MapDto ¶
type MapDto struct {
// Ignore query parameters when discovering URLs
IgnoreQueryParameters *bool `json:"ignoreQueryParameters,omitempty" url:"-"`
// Include subdomains in the map
IncludeSubdomains *bool `json:"includeSubdomains,omitempty" url:"-"`
// Maximum number of URLs to return
Limit *float64 `json:"limit,omitempty" url:"-"`
// Location configuration
Location *LocationDto `json:"location,omitempty" url:"-"`
// Search filter for URLs
Search *string `json:"search,omitempty" url:"-"`
// How to handle sitemaps
Sitemap *MapDtoSitemap `json:"sitemap,omitempty" url:"-"`
// Timeout for map operation in milliseconds
Timeout *float64 `json:"timeout,omitempty" url:"-"`
// URL to map
URL string `json:"url" url:"-"`
// contains filtered or unexported fields
}
func (*MapDto) MarshalJSON ¶
func (*MapDto) SetIgnoreQueryParameters ¶
SetIgnoreQueryParameters sets the IgnoreQueryParameters field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MapDto) SetIncludeSubdomains ¶
SetIncludeSubdomains sets the IncludeSubdomains field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MapDto) SetLimit ¶
SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MapDto) SetLocation ¶
func (m *MapDto) SetLocation(location *LocationDto)
SetLocation sets the Location field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MapDto) SetSearch ¶
SetSearch sets the Search field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MapDto) SetSitemap ¶
func (m *MapDto) SetSitemap(sitemap *MapDtoSitemap)
SetSitemap sets the Sitemap field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MapDto) SetTimeout ¶
SetTimeout sets the Timeout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MapDto) SetURL ¶
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MapDto) UnmarshalJSON ¶
type MapDtoSitemap ¶
type MapDtoSitemap string
How to handle sitemaps
const ( MapDtoSitemapInclude MapDtoSitemap = "include" MapDtoSitemapSkip MapDtoSitemap = "skip" MapDtoSitemapOnly MapDtoSitemap = "only" )
func NewMapDtoSitemapFromString ¶
func NewMapDtoSitemapFromString(s string) (MapDtoSitemap, error)
func (MapDtoSitemap) Ptr ¶
func (m MapDtoSitemap) Ptr() *MapDtoSitemap
type MapLink ¶
type MapLink struct {
Description *string `json:"description,omitempty" url:"description,omitempty"`
Title *string `json:"title,omitempty" url:"title,omitempty"`
URL string `json:"url" url:"url"`
// contains filtered or unexported fields
}
func (*MapLink) GetDescription ¶
func (*MapLink) GetExtraProperties ¶
func (*MapLink) MarshalJSON ¶
func (*MapLink) SetDescription ¶
SetDescription sets the Description field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MapLink) SetTitle ¶
SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MapLink) SetURL ¶
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MapLink) UnmarshalJSON ¶
type MapResponse ¶
type MapResponse struct {
CreditsUsed int `json:"creditsUsed" url:"creditsUsed"`
Links []*MapLink `json:"links" url:"links"`
Success bool `json:"success" url:"success"`
Total int `json:"total" url:"total"`
// contains filtered or unexported fields
}
func (*MapResponse) GetCreditsUsed ¶
func (m *MapResponse) GetCreditsUsed() int
func (*MapResponse) GetExtraProperties ¶
func (m *MapResponse) GetExtraProperties() map[string]interface{}
func (*MapResponse) GetLinks ¶
func (m *MapResponse) GetLinks() []*MapLink
func (*MapResponse) GetSuccess ¶
func (m *MapResponse) GetSuccess() bool
func (*MapResponse) GetTotal ¶
func (m *MapResponse) GetTotal() int
func (*MapResponse) MarshalJSON ¶
func (m *MapResponse) MarshalJSON() ([]byte, error)
func (*MapResponse) SetCreditsUsed ¶
func (m *MapResponse) SetCreditsUsed(creditsUsed int)
SetCreditsUsed sets the CreditsUsed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MapResponse) SetLinks ¶
func (m *MapResponse) SetLinks(links []*MapLink)
SetLinks sets the Links field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MapResponse) SetSuccess ¶
func (m *MapResponse) SetSuccess(success bool)
SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MapResponse) SetTotal ¶
func (m *MapResponse) SetTotal(total int)
SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MapResponse) String ¶
func (m *MapResponse) String() string
func (*MapResponse) UnmarshalJSON ¶
func (m *MapResponse) UnmarshalJSON(data []byte) error
type MessageResponse ¶
type MessageResponse struct {
Message string `json:"message" url:"message"`
Success bool `json:"success" url:"success"`
// contains filtered or unexported fields
}
func (*MessageResponse) GetExtraProperties ¶
func (m *MessageResponse) GetExtraProperties() map[string]interface{}
func (*MessageResponse) GetMessage ¶
func (m *MessageResponse) GetMessage() string
func (*MessageResponse) GetSuccess ¶
func (m *MessageResponse) GetSuccess() bool
func (*MessageResponse) MarshalJSON ¶
func (m *MessageResponse) MarshalJSON() ([]byte, error)
func (*MessageResponse) SetMessage ¶
func (m *MessageResponse) SetMessage(message string)
SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MessageResponse) SetSuccess ¶
func (m *MessageResponse) SetSuccess(success bool)
SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MessageResponse) String ¶
func (m *MessageResponse) String() string
func (*MessageResponse) UnmarshalJSON ¶
func (m *MessageResponse) UnmarshalJSON(data []byte) error
type NotFoundError ¶
Website could not be loaded
func (*NotFoundError) MarshalJSON ¶
func (n *NotFoundError) MarshalJSON() ([]byte, error)
func (*NotFoundError) UnmarshalJSON ¶
func (n *NotFoundError) UnmarshalJSON(data []byte) error
func (*NotFoundError) Unwrap ¶
func (n *NotFoundError) Unwrap() error
type Pagination ¶
type Pagination struct {
Limit int `json:"limit" url:"limit"`
Page int `json:"page" url:"page"`
Total int `json:"total" url:"total"`
TotalPages *int `json:"totalPages,omitempty" url:"totalPages,omitempty"`
// contains filtered or unexported fields
}
func (*Pagination) GetExtraProperties ¶
func (p *Pagination) GetExtraProperties() map[string]interface{}
func (*Pagination) GetLimit ¶
func (p *Pagination) GetLimit() int
func (*Pagination) GetPage ¶
func (p *Pagination) GetPage() int
func (*Pagination) GetTotal ¶
func (p *Pagination) GetTotal() int
func (*Pagination) GetTotalPages ¶
func (p *Pagination) GetTotalPages() *int
func (*Pagination) MarshalJSON ¶
func (p *Pagination) MarshalJSON() ([]byte, error)
func (*Pagination) SetLimit ¶
func (p *Pagination) SetLimit(limit int)
SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Pagination) SetPage ¶
func (p *Pagination) SetPage(page int)
SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Pagination) SetTotal ¶
func (p *Pagination) SetTotal(total int)
SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Pagination) SetTotalPages ¶
func (p *Pagination) SetTotalPages(totalPages *int)
SetTotalPages sets the TotalPages field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Pagination) String ¶
func (p *Pagination) String() string
func (*Pagination) UnmarshalJSON ¶
func (p *Pagination) UnmarshalJSON(data []byte) error
type ParseDto ¶
type ParseDto struct {
Timeout *float64 `json:"timeout,omitempty" url:"-"`
// Public PDF, Word document, or spreadsheet URL
URL string `json:"url" url:"-"`
// contains filtered or unexported fields
}
func (*ParseDto) MarshalJSON ¶
func (*ParseDto) SetTimeout ¶
SetTimeout sets the Timeout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ParseDto) SetURL ¶
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ParseDto) UnmarshalJSON ¶
type ScrapeDto ¶
type ScrapeDto struct {
// Browser actions to execute
Actions []*ActionDto `json:"actions,omitempty" url:"-"`
// Enable ad-blocking and cookie popup blocking
BlockAds *bool `json:"blockAds,omitempty" url:"-"`
// Domain to scrape. Normalized to https://domain when url is omitted.
Domain *string `json:"domain,omitempty" url:"-"`
// CSS selectors to exclude
ExcludeTags []string `json:"excludeTags,omitempty" url:"-"`
// Schema for structured data extraction (used with json format)
ExtractionSchema map[string]any `json:"extractionSchema,omitempty" url:"-"`
// Output formats - can be simple strings or format objects with options
Formats []*ScrapeDtoFormatsItem `json:"formats,omitempty" url:"-"`
// Custom headers
Headers map[string]any `json:"headers,omitempty" url:"-"`
// CSS selectors to include
IncludeTags []string `json:"includeTags,omitempty" url:"-"`
// Location settings
Location *LocationDto `json:"location,omitempty" url:"-"`
// Cache max age in milliseconds
MaxAge *float64 `json:"maxAge,omitempty" url:"-"`
// Emulate mobile device for scraping
Mobile *bool `json:"mobile,omitempty" url:"-"`
// Extract only main content
OnlyMainContent *bool `json:"onlyMainContent,omitempty" url:"-"`
// Proxy mode. auto starts direct and escalates only when blocked. basic is an alias for none.
Proxy *ScrapeDtoProxy `json:"proxy,omitempty" url:"-"`
// Remove base64 images from output (keeps alt text)
RemoveBase64Images *bool `json:"removeBase64Images,omitempty" url:"-"`
// Return screenshot/PDF output inline as a base64 data URL instead of an uploaded CDN URL. Default false (a CDN URL is returned).
ScreenshotAsBase64 *bool `json:"screenshotAsBase64,omitempty" url:"-"`
// Skip TLS certificate verification
SkipTLSVerification *bool `json:"skipTlsVerification,omitempty" url:"-"`
// Store result in cache
StoreInCache *bool `json:"storeInCache,omitempty" url:"-"`
// Request timeout in milliseconds
Timeout *float64 `json:"timeout,omitempty" url:"-"`
// URL to scrape. Either url or domain is required.
URL *string `json:"url,omitempty" url:"-"`
// Wait time before scraping (ms)
WaitFor *float64 `json:"waitFor,omitempty" url:"-"`
// Reserved for a future zero-data-retention mode. true is currently rejected with 400 ZERO_DATA_RETENTION_NOT_SUPPORTED; omit or use false.
ZeroDataRetention *bool `json:"zeroDataRetention,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*ScrapeDto) MarshalJSON ¶
func (*ScrapeDto) SetActions ¶
SetActions sets the Actions field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetBlockAds ¶
SetBlockAds sets the BlockAds field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetDomain ¶
SetDomain sets the Domain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetExcludeTags ¶
SetExcludeTags sets the ExcludeTags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetExtractionSchema ¶
SetExtractionSchema sets the ExtractionSchema field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetFormats ¶
func (s *ScrapeDto) SetFormats(formats []*ScrapeDtoFormatsItem)
SetFormats sets the Formats field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetHeaders ¶
SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetIncludeTags ¶
SetIncludeTags sets the IncludeTags field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetLocation ¶
func (s *ScrapeDto) SetLocation(location *LocationDto)
SetLocation sets the Location field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetMaxAge ¶
SetMaxAge sets the MaxAge field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetMobile ¶
SetMobile sets the Mobile field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetOnlyMainContent ¶
SetOnlyMainContent sets the OnlyMainContent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetProxy ¶
func (s *ScrapeDto) SetProxy(proxy *ScrapeDtoProxy)
SetProxy sets the Proxy field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetRemoveBase64Images ¶
SetRemoveBase64Images sets the RemoveBase64Images field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetScreenshotAsBase64 ¶
SetScreenshotAsBase64 sets the ScreenshotAsBase64 field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetSkipTLSVerification ¶
SetSkipTLSVerification sets the SkipTLSVerification field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetStoreInCache ¶
SetStoreInCache sets the StoreInCache field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetTimeout ¶
SetTimeout sets the Timeout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetURL ¶
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetWaitFor ¶
SetWaitFor sets the WaitFor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) SetZeroDataRetention ¶
SetZeroDataRetention sets the ZeroDataRetention field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeDto) UnmarshalJSON ¶
type ScrapeDtoFormatsItem ¶
type ScrapeDtoFormatsItem struct {
ScrapeDtoFormatsItemZero ScrapeDtoFormatsItemZero
JSONFormatDto *JSONFormatDto
SummaryFormatDto *SummaryFormatDto
ChangeTrackingFormatDto *ChangeTrackingFormatDto
// contains filtered or unexported fields
}
func (*ScrapeDtoFormatsItem) Accept ¶
func (s *ScrapeDtoFormatsItem) Accept(visitor ScrapeDtoFormatsItemVisitor) error
func (*ScrapeDtoFormatsItem) GetChangeTrackingFormatDto ¶
func (s *ScrapeDtoFormatsItem) GetChangeTrackingFormatDto() *ChangeTrackingFormatDto
func (*ScrapeDtoFormatsItem) GetJSONFormatDto ¶
func (s *ScrapeDtoFormatsItem) GetJSONFormatDto() *JSONFormatDto
func (*ScrapeDtoFormatsItem) GetScrapeDtoFormatsItemZero ¶
func (s *ScrapeDtoFormatsItem) GetScrapeDtoFormatsItemZero() ScrapeDtoFormatsItemZero
func (*ScrapeDtoFormatsItem) GetSummaryFormatDto ¶
func (s *ScrapeDtoFormatsItem) GetSummaryFormatDto() *SummaryFormatDto
func (ScrapeDtoFormatsItem) MarshalJSON ¶
func (s ScrapeDtoFormatsItem) MarshalJSON() ([]byte, error)
func (*ScrapeDtoFormatsItem) UnmarshalJSON ¶
func (s *ScrapeDtoFormatsItem) UnmarshalJSON(data []byte) error
type ScrapeDtoFormatsItemVisitor ¶
type ScrapeDtoFormatsItemVisitor interface {
VisitScrapeDtoFormatsItemZero(ScrapeDtoFormatsItemZero) error
VisitJSONFormatDto(*JSONFormatDto) error
VisitSummaryFormatDto(*SummaryFormatDto) error
VisitChangeTrackingFormatDto(*ChangeTrackingFormatDto) error
}
type ScrapeDtoFormatsItemZero ¶
type ScrapeDtoFormatsItemZero string
const ( ScrapeDtoFormatsItemZeroMarkdown ScrapeDtoFormatsItemZero = "markdown" ScrapeDtoFormatsItemZeroHTML ScrapeDtoFormatsItemZero = "html" ScrapeDtoFormatsItemZeroRawhtml ScrapeDtoFormatsItemZero = "rawhtml" ScrapeDtoFormatsItemZeroLinks ScrapeDtoFormatsItemZero = "links" ScrapeDtoFormatsItemZeroImages ScrapeDtoFormatsItemZero = "images" ScrapeDtoFormatsItemZeroSummary ScrapeDtoFormatsItemZero = "summary" ScrapeDtoFormatsItemZeroJSON ScrapeDtoFormatsItemZero = "json" ScrapeDtoFormatsItemZeroChangeTracking ScrapeDtoFormatsItemZero = "changeTracking" )
func NewScrapeDtoFormatsItemZeroFromString ¶
func NewScrapeDtoFormatsItemZeroFromString(s string) (ScrapeDtoFormatsItemZero, error)
func (ScrapeDtoFormatsItemZero) Ptr ¶
func (s ScrapeDtoFormatsItemZero) Ptr() *ScrapeDtoFormatsItemZero
type ScrapeDtoProxy ¶
type ScrapeDtoProxy string
Proxy mode. auto starts direct and escalates only when blocked. basic is an alias for none.
const ( ScrapeDtoProxyNone ScrapeDtoProxy = "none" ScrapeDtoProxyBasic ScrapeDtoProxy = "basic" ScrapeDtoProxyDatacenter ScrapeDtoProxy = "datacenter" ScrapeDtoProxyResidential ScrapeDtoProxy = "residential" ScrapeDtoProxyStealth ScrapeDtoProxy = "stealth" ScrapeDtoProxyAuto ScrapeDtoProxy = "auto" )
func NewScrapeDtoProxyFromString ¶
func NewScrapeDtoProxyFromString(s string) (ScrapeDtoProxy, error)
func (ScrapeDtoProxy) Ptr ¶
func (s ScrapeDtoProxy) Ptr() *ScrapeDtoProxy
type ScrapeMetadata ¶
type ScrapeMetadata struct {
ContentType *string `json:"contentType,omitempty" url:"contentType,omitempty"`
StatusCode *int `json:"statusCode,omitempty" url:"statusCode,omitempty"`
Timestamp time.Time `json:"timestamp" url:"timestamp"`
Title *string `json:"title,omitempty" url:"title,omitempty"`
URL string `json:"url" url:"url"`
// contains filtered or unexported fields
}
func (*ScrapeMetadata) GetContentType ¶
func (s *ScrapeMetadata) GetContentType() *string
func (*ScrapeMetadata) GetExtraProperties ¶
func (s *ScrapeMetadata) GetExtraProperties() map[string]interface{}
func (*ScrapeMetadata) GetStatusCode ¶
func (s *ScrapeMetadata) GetStatusCode() *int
func (*ScrapeMetadata) GetTimestamp ¶
func (s *ScrapeMetadata) GetTimestamp() time.Time
func (*ScrapeMetadata) GetTitle ¶
func (s *ScrapeMetadata) GetTitle() *string
func (*ScrapeMetadata) GetURL ¶
func (s *ScrapeMetadata) GetURL() string
func (*ScrapeMetadata) MarshalJSON ¶
func (s *ScrapeMetadata) MarshalJSON() ([]byte, error)
func (*ScrapeMetadata) SetContentType ¶
func (s *ScrapeMetadata) SetContentType(contentType *string)
SetContentType sets the ContentType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeMetadata) SetStatusCode ¶
func (s *ScrapeMetadata) SetStatusCode(statusCode *int)
SetStatusCode sets the StatusCode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeMetadata) SetTimestamp ¶
func (s *ScrapeMetadata) SetTimestamp(timestamp time.Time)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeMetadata) SetTitle ¶
func (s *ScrapeMetadata) SetTitle(title *string)
SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeMetadata) SetURL ¶
func (s *ScrapeMetadata) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeMetadata) String ¶
func (s *ScrapeMetadata) String() string
func (*ScrapeMetadata) UnmarshalJSON ¶
func (s *ScrapeMetadata) UnmarshalJSON(data []byte) error
type ScrapeResponse ¶
type ScrapeResponse struct {
Credits *ScrapeResponseCredits `json:"credits" url:"credits"`
Data map[string]any `json:"data,omitempty" url:"data,omitempty"`
Error *string `json:"error,omitempty" url:"error,omitempty"`
Metadata *ScrapeMetadata `json:"metadata" url:"metadata"`
Success bool `json:"success" url:"success"`
// contains filtered or unexported fields
}
func (*ScrapeResponse) GetCredits ¶
func (s *ScrapeResponse) GetCredits() *ScrapeResponseCredits
func (*ScrapeResponse) GetData ¶
func (s *ScrapeResponse) GetData() map[string]any
func (*ScrapeResponse) GetError ¶
func (s *ScrapeResponse) GetError() *string
func (*ScrapeResponse) GetExtraProperties ¶
func (s *ScrapeResponse) GetExtraProperties() map[string]interface{}
func (*ScrapeResponse) GetMetadata ¶
func (s *ScrapeResponse) GetMetadata() *ScrapeMetadata
func (*ScrapeResponse) GetSuccess ¶
func (s *ScrapeResponse) GetSuccess() bool
func (*ScrapeResponse) MarshalJSON ¶
func (s *ScrapeResponse) MarshalJSON() ([]byte, error)
func (*ScrapeResponse) SetCredits ¶
func (s *ScrapeResponse) SetCredits(credits *ScrapeResponseCredits)
SetCredits sets the Credits field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeResponse) SetData ¶
func (s *ScrapeResponse) SetData(data map[string]any)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeResponse) SetError ¶
func (s *ScrapeResponse) SetError(error_ *string)
SetError sets the Error field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeResponse) SetMetadata ¶
func (s *ScrapeResponse) SetMetadata(metadata *ScrapeMetadata)
SetMetadata sets the Metadata field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeResponse) SetSuccess ¶
func (s *ScrapeResponse) SetSuccess(success bool)
SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeResponse) String ¶
func (s *ScrapeResponse) String() string
func (*ScrapeResponse) UnmarshalJSON ¶
func (s *ScrapeResponse) UnmarshalJSON(data []byte) error
type ScrapeResponseCredits ¶
type ScrapeResponseCredits struct {
Used int `json:"used" url:"used"`
// contains filtered or unexported fields
}
func (*ScrapeResponseCredits) GetExtraProperties ¶
func (s *ScrapeResponseCredits) GetExtraProperties() map[string]interface{}
func (*ScrapeResponseCredits) GetUsed ¶
func (s *ScrapeResponseCredits) GetUsed() int
func (*ScrapeResponseCredits) MarshalJSON ¶
func (s *ScrapeResponseCredits) MarshalJSON() ([]byte, error)
func (*ScrapeResponseCredits) SetUsed ¶
func (s *ScrapeResponseCredits) SetUsed(used int)
SetUsed sets the Used field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScrapeResponseCredits) String ¶
func (s *ScrapeResponseCredits) String() string
func (*ScrapeResponseCredits) UnmarshalJSON ¶
func (s *ScrapeResponseCredits) UnmarshalJSON(data []byte) error
type ScreenshotClipDto ¶
type ScreenshotClipDto struct {
Height float64 `json:"height" url:"height"`
Width float64 `json:"width" url:"width"`
X float64 `json:"x" url:"x"`
Y float64 `json:"y" url:"y"`
// contains filtered or unexported fields
}
func (*ScreenshotClipDto) GetExtraProperties ¶
func (s *ScreenshotClipDto) GetExtraProperties() map[string]interface{}
func (*ScreenshotClipDto) GetHeight ¶
func (s *ScreenshotClipDto) GetHeight() float64
func (*ScreenshotClipDto) GetWidth ¶
func (s *ScreenshotClipDto) GetWidth() float64
func (*ScreenshotClipDto) GetX ¶
func (s *ScreenshotClipDto) GetX() float64
func (*ScreenshotClipDto) GetY ¶
func (s *ScreenshotClipDto) GetY() float64
func (*ScreenshotClipDto) MarshalJSON ¶
func (s *ScreenshotClipDto) MarshalJSON() ([]byte, error)
func (*ScreenshotClipDto) SetHeight ¶
func (s *ScreenshotClipDto) SetHeight(height float64)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotClipDto) SetWidth ¶
func (s *ScreenshotClipDto) SetWidth(width float64)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotClipDto) SetX ¶
func (s *ScreenshotClipDto) SetX(x float64)
SetX sets the X field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotClipDto) SetY ¶
func (s *ScreenshotClipDto) SetY(y float64)
SetY sets the Y field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotClipDto) String ¶
func (s *ScreenshotClipDto) String() string
func (*ScreenshotClipDto) UnmarshalJSON ¶
func (s *ScreenshotClipDto) UnmarshalJSON(data []byte) error
type ScreenshotCookieDto ¶
type ScreenshotCookieDto struct {
Domain *string `json:"domain,omitempty" url:"domain,omitempty"`
HTTPOnly *bool `json:"httpOnly,omitempty" url:"httpOnly,omitempty"`
Name string `json:"name" url:"name"`
Path *string `json:"path,omitempty" url:"path,omitempty"`
SameSite *ScreenshotCookieDtoSameSite `json:"sameSite,omitempty" url:"sameSite,omitempty"`
Secure *bool `json:"secure,omitempty" url:"secure,omitempty"`
Value string `json:"value" url:"value"`
// contains filtered or unexported fields
}
func (*ScreenshotCookieDto) GetDomain ¶
func (s *ScreenshotCookieDto) GetDomain() *string
func (*ScreenshotCookieDto) GetExtraProperties ¶
func (s *ScreenshotCookieDto) GetExtraProperties() map[string]interface{}
func (*ScreenshotCookieDto) GetHTTPOnly ¶
func (s *ScreenshotCookieDto) GetHTTPOnly() *bool
func (*ScreenshotCookieDto) GetName ¶
func (s *ScreenshotCookieDto) GetName() string
func (*ScreenshotCookieDto) GetPath ¶
func (s *ScreenshotCookieDto) GetPath() *string
func (*ScreenshotCookieDto) GetSameSite ¶
func (s *ScreenshotCookieDto) GetSameSite() *ScreenshotCookieDtoSameSite
func (*ScreenshotCookieDto) GetSecure ¶
func (s *ScreenshotCookieDto) GetSecure() *bool
func (*ScreenshotCookieDto) GetValue ¶
func (s *ScreenshotCookieDto) GetValue() string
func (*ScreenshotCookieDto) MarshalJSON ¶
func (s *ScreenshotCookieDto) MarshalJSON() ([]byte, error)
func (*ScreenshotCookieDto) SetDomain ¶
func (s *ScreenshotCookieDto) SetDomain(domain *string)
SetDomain sets the Domain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotCookieDto) SetHTTPOnly ¶
func (s *ScreenshotCookieDto) SetHTTPOnly(httpOnly *bool)
SetHTTPOnly sets the HTTPOnly field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotCookieDto) SetName ¶
func (s *ScreenshotCookieDto) SetName(name string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotCookieDto) SetPath ¶
func (s *ScreenshotCookieDto) SetPath(path *string)
SetPath sets the Path field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotCookieDto) SetSameSite ¶
func (s *ScreenshotCookieDto) SetSameSite(sameSite *ScreenshotCookieDtoSameSite)
SetSameSite sets the SameSite field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotCookieDto) SetSecure ¶
func (s *ScreenshotCookieDto) SetSecure(secure *bool)
SetSecure sets the Secure field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotCookieDto) SetValue ¶
func (s *ScreenshotCookieDto) SetValue(value string)
SetValue sets the Value field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotCookieDto) String ¶
func (s *ScreenshotCookieDto) String() string
func (*ScreenshotCookieDto) UnmarshalJSON ¶
func (s *ScreenshotCookieDto) UnmarshalJSON(data []byte) error
type ScreenshotCookieDtoSameSite ¶
type ScreenshotCookieDtoSameSite string
const ( ScreenshotCookieDtoSameSiteStrict ScreenshotCookieDtoSameSite = "Strict" ScreenshotCookieDtoSameSiteLax ScreenshotCookieDtoSameSite = "Lax" ScreenshotCookieDtoSameSiteNone ScreenshotCookieDtoSameSite = "None" )
func NewScreenshotCookieDtoSameSiteFromString ¶
func NewScreenshotCookieDtoSameSiteFromString(s string) (ScreenshotCookieDtoSameSite, error)
func (ScreenshotCookieDtoSameSite) Ptr ¶
func (s ScreenshotCookieDtoSameSite) Ptr() *ScreenshotCookieDtoSameSite
type ScreenshotDto ¶
type ScreenshotDto struct {
// Block common advertising and analytics requests
BlockAds *bool `json:"blockAds,omitempty" url:"-"`
// Click this CSS selector before capture
ClickSelector *string `json:"clickSelector,omitempty" url:"-"`
// Capture an exact pixel rectangle instead of the page
Clip *ScreenshotClipDto `json:"clip,omitempty" url:"-"`
ColorScheme *ScreenshotDtoColorScheme `json:"colorScheme,omitempty" url:"-"`
// Cookies to set before loading the page
Cookies []*ScreenshotCookieDto `json:"cookies,omitempty" url:"-"`
// Extra settling time after the page is ready, in milliseconds
Delay *float64 `json:"delay,omitempty" url:"-"`
// Named viewport preset
Device *ScreenshotDtoDevice `json:"device,omitempty" url:"-"`
DisableAnimations *bool `json:"disableAnimations,omitempty" url:"-"`
Format *ScreenshotDtoFormat `json:"format,omitempty" url:"-"`
// Capture the complete page instead of only the viewport
FullPage *bool `json:"fullPage,omitempty" url:"-"`
// auto uses native capture for normal pages and stitched slices for very tall pages
FullPageAlgorithm *ScreenshotDtoFullPageAlgorithm `json:"fullPageAlgorithm,omitempty" url:"-"`
// Headers sent while loading the page
Headers map[string]any `json:"headers,omitempty" url:"-"`
// Show fixed/sticky UI once instead of repeating it in stitched captures
HideFixedElements *bool `json:"hideFixedElements,omitempty" url:"-"`
// Hide matching elements before capture
HideSelectors []string `json:"hideSelectors,omitempty" url:"-"`
Location *ScreenshotLocationDto `json:"location,omitempty" url:"-"`
MaskColor *string `json:"maskColor,omitempty" url:"-"`
// Cover matching elements with a solid privacy mask
MaskSelectors []string `json:"maskSelectors,omitempty" url:"-"`
// Maximum full-page height. Prevents endless captures on infinite pages.
MaxHeight *float64 `json:"maxHeight,omitempty" url:"-"`
// Use a transparent background where the page allows it
OmitBackground *bool `json:"omitBackground,omitempty" url:"-"`
// Proxy mode
Proxy *ScreenshotDtoProxy `json:"proxy,omitempty" url:"-"`
// JPEG or WebP quality
Quality *float64 `json:"quality,omitempty" url:"-"`
ReducedMotion *bool `json:"reducedMotion,omitempty" url:"-"`
// Hide common support and chat widgets
RemoveChatWidgets *bool `json:"removeChatWidgets,omitempty" url:"-"`
// Accept known consent dialogs, hide remaining cookie banners, and restore page scrolling
RemoveCookieBanners *bool `json:"removeCookieBanners,omitempty" url:"-"`
// Remove newsletter gates, modal backdrops, and blocking overlays
RemoveOverlays *bool `json:"removeOverlays,omitempty" url:"-"`
// Return a CDN URL or an inline data URL
ResponseFormat *ScreenshotDtoResponseFormat `json:"responseFormat,omitempty" url:"-"`
// Capture at CSS pixel size or the emulated device pixel ratio
Scale *ScreenshotDtoScale `json:"scale,omitempty" url:"-"`
// Pause between lazy-load scroll steps, in milliseconds
ScrollDelay *float64 `json:"scrollDelay,omitempty" url:"-"`
// Scroll through the page first so lazy content is loaded
ScrollPage *bool `json:"scrollPage,omitempty" url:"-"`
// Capture one element instead of the page
Selector *string `json:"selector,omitempty" url:"-"`
// CSS rules to apply before capture
Styles []string `json:"styles,omitempty" url:"-"`
Timeout *float64 `json:"timeout,omitempty" url:"-"`
// Public webpage URL to capture
URL string `json:"url" url:"-"`
// Custom viewport. Overrides the named device dimensions.
Viewport *ScreenshotViewportDto `json:"viewport,omitempty" url:"-"`
// Wait for this CSS selector before capture
WaitForSelector *string `json:"waitForSelector,omitempty" url:"-"`
// Page readiness milestone used before capture
WaitUntil *ScreenshotDtoWaitUntil `json:"waitUntil,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*ScreenshotDto) MarshalJSON ¶
func (s *ScreenshotDto) MarshalJSON() ([]byte, error)
func (*ScreenshotDto) SetBlockAds ¶
func (s *ScreenshotDto) SetBlockAds(blockAds *bool)
SetBlockAds sets the BlockAds field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetClickSelector ¶
func (s *ScreenshotDto) SetClickSelector(clickSelector *string)
SetClickSelector sets the ClickSelector field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetClip ¶
func (s *ScreenshotDto) SetClip(clip *ScreenshotClipDto)
SetClip sets the Clip field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetColorScheme ¶
func (s *ScreenshotDto) SetColorScheme(colorScheme *ScreenshotDtoColorScheme)
SetColorScheme sets the ColorScheme field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetCookies ¶
func (s *ScreenshotDto) SetCookies(cookies []*ScreenshotCookieDto)
SetCookies sets the Cookies field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetDelay ¶
func (s *ScreenshotDto) SetDelay(delay *float64)
SetDelay sets the Delay field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetDevice ¶
func (s *ScreenshotDto) SetDevice(device *ScreenshotDtoDevice)
SetDevice sets the Device field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetDisableAnimations ¶
func (s *ScreenshotDto) SetDisableAnimations(disableAnimations *bool)
SetDisableAnimations sets the DisableAnimations field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetFormat ¶
func (s *ScreenshotDto) SetFormat(format *ScreenshotDtoFormat)
SetFormat sets the Format field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetFullPage ¶
func (s *ScreenshotDto) SetFullPage(fullPage *bool)
SetFullPage sets the FullPage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetFullPageAlgorithm ¶
func (s *ScreenshotDto) SetFullPageAlgorithm(fullPageAlgorithm *ScreenshotDtoFullPageAlgorithm)
SetFullPageAlgorithm sets the FullPageAlgorithm field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetHeaders ¶
func (s *ScreenshotDto) SetHeaders(headers map[string]any)
SetHeaders sets the Headers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetHideFixedElements ¶
func (s *ScreenshotDto) SetHideFixedElements(hideFixedElements *bool)
SetHideFixedElements sets the HideFixedElements field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetHideSelectors ¶
func (s *ScreenshotDto) SetHideSelectors(hideSelectors []string)
SetHideSelectors sets the HideSelectors field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetLocation ¶
func (s *ScreenshotDto) SetLocation(location *ScreenshotLocationDto)
SetLocation sets the Location field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetMaskColor ¶
func (s *ScreenshotDto) SetMaskColor(maskColor *string)
SetMaskColor sets the MaskColor field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetMaskSelectors ¶
func (s *ScreenshotDto) SetMaskSelectors(maskSelectors []string)
SetMaskSelectors sets the MaskSelectors field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetMaxHeight ¶
func (s *ScreenshotDto) SetMaxHeight(maxHeight *float64)
SetMaxHeight sets the MaxHeight field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetOmitBackground ¶
func (s *ScreenshotDto) SetOmitBackground(omitBackground *bool)
SetOmitBackground sets the OmitBackground field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetProxy ¶
func (s *ScreenshotDto) SetProxy(proxy *ScreenshotDtoProxy)
SetProxy sets the Proxy field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetQuality ¶
func (s *ScreenshotDto) SetQuality(quality *float64)
SetQuality sets the Quality field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetReducedMotion ¶
func (s *ScreenshotDto) SetReducedMotion(reducedMotion *bool)
SetReducedMotion sets the ReducedMotion field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetRemoveChatWidgets ¶
func (s *ScreenshotDto) SetRemoveChatWidgets(removeChatWidgets *bool)
SetRemoveChatWidgets sets the RemoveChatWidgets field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetRemoveCookieBanners ¶
func (s *ScreenshotDto) SetRemoveCookieBanners(removeCookieBanners *bool)
SetRemoveCookieBanners sets the RemoveCookieBanners field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetRemoveOverlays ¶
func (s *ScreenshotDto) SetRemoveOverlays(removeOverlays *bool)
SetRemoveOverlays sets the RemoveOverlays field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetResponseFormat ¶
func (s *ScreenshotDto) SetResponseFormat(responseFormat *ScreenshotDtoResponseFormat)
SetResponseFormat sets the ResponseFormat field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetScale ¶
func (s *ScreenshotDto) SetScale(scale *ScreenshotDtoScale)
SetScale sets the Scale field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetScrollDelay ¶
func (s *ScreenshotDto) SetScrollDelay(scrollDelay *float64)
SetScrollDelay sets the ScrollDelay field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetScrollPage ¶
func (s *ScreenshotDto) SetScrollPage(scrollPage *bool)
SetScrollPage sets the ScrollPage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetSelector ¶
func (s *ScreenshotDto) SetSelector(selector *string)
SetSelector sets the Selector field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetStyles ¶
func (s *ScreenshotDto) SetStyles(styles []string)
SetStyles sets the Styles field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetTimeout ¶
func (s *ScreenshotDto) SetTimeout(timeout *float64)
SetTimeout sets the Timeout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetURL ¶
func (s *ScreenshotDto) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetViewport ¶
func (s *ScreenshotDto) SetViewport(viewport *ScreenshotViewportDto)
SetViewport sets the Viewport field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetWaitForSelector ¶
func (s *ScreenshotDto) SetWaitForSelector(waitForSelector *string)
SetWaitForSelector sets the WaitForSelector field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) SetWaitUntil ¶
func (s *ScreenshotDto) SetWaitUntil(waitUntil *ScreenshotDtoWaitUntil)
SetWaitUntil sets the WaitUntil field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotDto) UnmarshalJSON ¶
func (s *ScreenshotDto) UnmarshalJSON(data []byte) error
type ScreenshotDtoColorScheme ¶
type ScreenshotDtoColorScheme string
const ( ScreenshotDtoColorSchemeLight ScreenshotDtoColorScheme = "light" ScreenshotDtoColorSchemeDark ScreenshotDtoColorScheme = "dark" )
func NewScreenshotDtoColorSchemeFromString ¶
func NewScreenshotDtoColorSchemeFromString(s string) (ScreenshotDtoColorScheme, error)
func (ScreenshotDtoColorScheme) Ptr ¶
func (s ScreenshotDtoColorScheme) Ptr() *ScreenshotDtoColorScheme
type ScreenshotDtoDevice ¶
type ScreenshotDtoDevice string
Named viewport preset
const ( ScreenshotDtoDeviceDesktop ScreenshotDtoDevice = "desktop" ScreenshotDtoDeviceDesktopHd ScreenshotDtoDevice = "desktop-hd" ScreenshotDtoDeviceTablet ScreenshotDtoDevice = "tablet" ScreenshotDtoDeviceIphone15 ScreenshotDtoDevice = "iphone-15" ScreenshotDtoDevicePixel8 ScreenshotDtoDevice = "pixel-8" )
func NewScreenshotDtoDeviceFromString ¶
func NewScreenshotDtoDeviceFromString(s string) (ScreenshotDtoDevice, error)
func (ScreenshotDtoDevice) Ptr ¶
func (s ScreenshotDtoDevice) Ptr() *ScreenshotDtoDevice
type ScreenshotDtoFormat ¶
type ScreenshotDtoFormat string
const ( ScreenshotDtoFormatPng ScreenshotDtoFormat = "png" ScreenshotDtoFormatJpeg ScreenshotDtoFormat = "jpeg" ScreenshotDtoFormatWebp ScreenshotDtoFormat = "webp" )
func NewScreenshotDtoFormatFromString ¶
func NewScreenshotDtoFormatFromString(s string) (ScreenshotDtoFormat, error)
func (ScreenshotDtoFormat) Ptr ¶
func (s ScreenshotDtoFormat) Ptr() *ScreenshotDtoFormat
type ScreenshotDtoFullPageAlgorithm ¶
type ScreenshotDtoFullPageAlgorithm string
auto uses native capture for normal pages and stitched slices for very tall pages
const ( ScreenshotDtoFullPageAlgorithmAuto ScreenshotDtoFullPageAlgorithm = "auto" ScreenshotDtoFullPageAlgorithmNative ScreenshotDtoFullPageAlgorithm = "native" ScreenshotDtoFullPageAlgorithmStitch ScreenshotDtoFullPageAlgorithm = "stitch" )
func NewScreenshotDtoFullPageAlgorithmFromString ¶
func NewScreenshotDtoFullPageAlgorithmFromString(s string) (ScreenshotDtoFullPageAlgorithm, error)
func (ScreenshotDtoFullPageAlgorithm) Ptr ¶
func (s ScreenshotDtoFullPageAlgorithm) Ptr() *ScreenshotDtoFullPageAlgorithm
type ScreenshotDtoProxy ¶
type ScreenshotDtoProxy string
Proxy mode
const ( ScreenshotDtoProxyNone ScreenshotDtoProxy = "none" ScreenshotDtoProxyBasic ScreenshotDtoProxy = "basic" ScreenshotDtoProxyDatacenter ScreenshotDtoProxy = "datacenter" ScreenshotDtoProxyResidential ScreenshotDtoProxy = "residential" ScreenshotDtoProxyStealth ScreenshotDtoProxy = "stealth" ScreenshotDtoProxyAuto ScreenshotDtoProxy = "auto" )
func NewScreenshotDtoProxyFromString ¶
func NewScreenshotDtoProxyFromString(s string) (ScreenshotDtoProxy, error)
func (ScreenshotDtoProxy) Ptr ¶
func (s ScreenshotDtoProxy) Ptr() *ScreenshotDtoProxy
type ScreenshotDtoResponseFormat ¶
type ScreenshotDtoResponseFormat string
Return a CDN URL or an inline data URL
const ( ScreenshotDtoResponseFormatURL ScreenshotDtoResponseFormat = "url" ScreenshotDtoResponseFormatBase64 ScreenshotDtoResponseFormat = "base64" )
func NewScreenshotDtoResponseFormatFromString ¶
func NewScreenshotDtoResponseFormatFromString(s string) (ScreenshotDtoResponseFormat, error)
func (ScreenshotDtoResponseFormat) Ptr ¶
func (s ScreenshotDtoResponseFormat) Ptr() *ScreenshotDtoResponseFormat
type ScreenshotDtoScale ¶
type ScreenshotDtoScale string
Capture at CSS pixel size or the emulated device pixel ratio
const ( ScreenshotDtoScaleCSS ScreenshotDtoScale = "css" ScreenshotDtoScaleDevice ScreenshotDtoScale = "device" )
func NewScreenshotDtoScaleFromString ¶
func NewScreenshotDtoScaleFromString(s string) (ScreenshotDtoScale, error)
func (ScreenshotDtoScale) Ptr ¶
func (s ScreenshotDtoScale) Ptr() *ScreenshotDtoScale
type ScreenshotDtoWaitUntil ¶
type ScreenshotDtoWaitUntil string
Page readiness milestone used before capture
const ( ScreenshotDtoWaitUntilDomcontentloaded ScreenshotDtoWaitUntil = "domcontentloaded" ScreenshotDtoWaitUntilLoad ScreenshotDtoWaitUntil = "load" ScreenshotDtoWaitUntilNetworkidle ScreenshotDtoWaitUntil = "networkidle" )
func NewScreenshotDtoWaitUntilFromString ¶
func NewScreenshotDtoWaitUntilFromString(s string) (ScreenshotDtoWaitUntil, error)
func (ScreenshotDtoWaitUntil) Ptr ¶
func (s ScreenshotDtoWaitUntil) Ptr() *ScreenshotDtoWaitUntil
type ScreenshotLocationDto ¶
type ScreenshotLocationDto struct {
Country *string `json:"country,omitempty" url:"country,omitempty"`
Languages []string `json:"languages,omitempty" url:"languages,omitempty"`
// contains filtered or unexported fields
}
func (*ScreenshotLocationDto) GetCountry ¶
func (s *ScreenshotLocationDto) GetCountry() *string
func (*ScreenshotLocationDto) GetExtraProperties ¶
func (s *ScreenshotLocationDto) GetExtraProperties() map[string]interface{}
func (*ScreenshotLocationDto) GetLanguages ¶
func (s *ScreenshotLocationDto) GetLanguages() []string
func (*ScreenshotLocationDto) MarshalJSON ¶
func (s *ScreenshotLocationDto) MarshalJSON() ([]byte, error)
func (*ScreenshotLocationDto) SetCountry ¶
func (s *ScreenshotLocationDto) SetCountry(country *string)
SetCountry sets the Country field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotLocationDto) SetLanguages ¶
func (s *ScreenshotLocationDto) SetLanguages(languages []string)
SetLanguages sets the Languages field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotLocationDto) String ¶
func (s *ScreenshotLocationDto) String() string
func (*ScreenshotLocationDto) UnmarshalJSON ¶
func (s *ScreenshotLocationDto) UnmarshalJSON(data []byte) error
type ScreenshotViewportDto ¶
type ScreenshotViewportDto struct {
Height float64 `json:"height" url:"height"`
Width float64 `json:"width" url:"width"`
// contains filtered or unexported fields
}
func (*ScreenshotViewportDto) GetExtraProperties ¶
func (s *ScreenshotViewportDto) GetExtraProperties() map[string]interface{}
func (*ScreenshotViewportDto) GetHeight ¶
func (s *ScreenshotViewportDto) GetHeight() float64
func (*ScreenshotViewportDto) GetWidth ¶
func (s *ScreenshotViewportDto) GetWidth() float64
func (*ScreenshotViewportDto) MarshalJSON ¶
func (s *ScreenshotViewportDto) MarshalJSON() ([]byte, error)
func (*ScreenshotViewportDto) SetHeight ¶
func (s *ScreenshotViewportDto) SetHeight(height float64)
SetHeight sets the Height field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotViewportDto) SetWidth ¶
func (s *ScreenshotViewportDto) SetWidth(width float64)
SetWidth sets the Width field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ScreenshotViewportDto) String ¶
func (s *ScreenshotViewportDto) String() string
func (*ScreenshotViewportDto) UnmarshalJSON ¶
func (s *ScreenshotViewportDto) UnmarshalJSON(data []byte) error
type SearchDto ¶
type SearchDto struct {
// Category filters
Categories []string `json:"categories,omitempty" url:"-"`
// Country code
Country *string `json:"country,omitempty" url:"-"`
// Maximum number of results
Limit *float64 `json:"limit,omitempty" url:"-"`
// Location for geo-targeting
Location *string `json:"location,omitempty" url:"-"`
// Search query
Query string `json:"query" url:"-"`
// Source types to search
Sources []string `json:"sources,omitempty" url:"-"`
// Time-based filter (e.g., qdr:d for past day)
Tbs *string `json:"tbs,omitempty" url:"-"`
// Timeout for search operation in milliseconds
Timeout *float64 `json:"timeout,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*SearchDto) MarshalJSON ¶
func (*SearchDto) SetCategories ¶
SetCategories sets the Categories field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchDto) SetCountry ¶
SetCountry sets the Country field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchDto) SetLimit ¶
SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchDto) SetLocation ¶
SetLocation sets the Location field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchDto) SetQuery ¶
SetQuery sets the Query field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchDto) SetSources ¶
SetSources sets the Sources field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchDto) SetTbs ¶
SetTbs sets the Tbs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchDto) SetTimeout ¶
SetTimeout sets the Timeout field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchDto) UnmarshalJSON ¶
type SearchResponse ¶
type SearchResponse struct {
CreditsUsed int `json:"creditsUsed" url:"creditsUsed"`
Data []*SearchResult `json:"data" url:"data"`
Query string `json:"query" url:"query"`
Success bool `json:"success" url:"success"`
Total int `json:"total" url:"total"`
// contains filtered or unexported fields
}
func (*SearchResponse) GetCreditsUsed ¶
func (s *SearchResponse) GetCreditsUsed() int
func (*SearchResponse) GetData ¶
func (s *SearchResponse) GetData() []*SearchResult
func (*SearchResponse) GetExtraProperties ¶
func (s *SearchResponse) GetExtraProperties() map[string]interface{}
func (*SearchResponse) GetQuery ¶
func (s *SearchResponse) GetQuery() string
func (*SearchResponse) GetSuccess ¶
func (s *SearchResponse) GetSuccess() bool
func (*SearchResponse) GetTotal ¶
func (s *SearchResponse) GetTotal() int
func (*SearchResponse) MarshalJSON ¶
func (s *SearchResponse) MarshalJSON() ([]byte, error)
func (*SearchResponse) SetCreditsUsed ¶
func (s *SearchResponse) SetCreditsUsed(creditsUsed int)
SetCreditsUsed sets the CreditsUsed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchResponse) SetData ¶
func (s *SearchResponse) SetData(data []*SearchResult)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchResponse) SetQuery ¶
func (s *SearchResponse) SetQuery(query string)
SetQuery sets the Query field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchResponse) SetSuccess ¶
func (s *SearchResponse) SetSuccess(success bool)
SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchResponse) SetTotal ¶
func (s *SearchResponse) SetTotal(total int)
SetTotal sets the Total field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchResponse) String ¶
func (s *SearchResponse) String() string
func (*SearchResponse) UnmarshalJSON ¶
func (s *SearchResponse) UnmarshalJSON(data []byte) error
type SearchResult ¶
type SearchResult struct {
PublishedDate *string `json:"publishedDate,omitempty" url:"publishedDate,omitempty"`
Snippet string `json:"snippet" url:"snippet"`
Source string `json:"source" url:"source"`
Title string `json:"title" url:"title"`
URL string `json:"url" url:"url"`
// contains filtered or unexported fields
}
func (*SearchResult) GetExtraProperties ¶
func (s *SearchResult) GetExtraProperties() map[string]interface{}
func (*SearchResult) GetPublishedDate ¶
func (s *SearchResult) GetPublishedDate() *string
func (*SearchResult) GetSnippet ¶
func (s *SearchResult) GetSnippet() string
func (*SearchResult) GetSource ¶
func (s *SearchResult) GetSource() string
func (*SearchResult) GetTitle ¶
func (s *SearchResult) GetTitle() string
func (*SearchResult) GetURL ¶
func (s *SearchResult) GetURL() string
func (*SearchResult) MarshalJSON ¶
func (s *SearchResult) MarshalJSON() ([]byte, error)
func (*SearchResult) SetPublishedDate ¶
func (s *SearchResult) SetPublishedDate(publishedDate *string)
SetPublishedDate sets the PublishedDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchResult) SetSnippet ¶
func (s *SearchResult) SetSnippet(snippet string)
SetSnippet sets the Snippet field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchResult) SetSource ¶
func (s *SearchResult) SetSource(source string)
SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchResult) SetTitle ¶
func (s *SearchResult) SetTitle(title string)
SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchResult) SetURL ¶
func (s *SearchResult) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SearchResult) String ¶
func (s *SearchResult) String() string
func (*SearchResult) UnmarshalJSON ¶
func (s *SearchResult) UnmarshalJSON(data []byte) error
type SummaryFormatDto ¶
type SummaryFormatDto struct {
// Specific query for focused summarization
Query *string `json:"query,omitempty" url:"query,omitempty"`
// Format type
Type SummaryFormatDtoType `json:"type" url:"type"`
// contains filtered or unexported fields
}
func (*SummaryFormatDto) GetExtraProperties ¶
func (s *SummaryFormatDto) GetExtraProperties() map[string]interface{}
func (*SummaryFormatDto) GetQuery ¶
func (s *SummaryFormatDto) GetQuery() *string
func (*SummaryFormatDto) GetType ¶
func (s *SummaryFormatDto) GetType() SummaryFormatDtoType
func (*SummaryFormatDto) MarshalJSON ¶
func (s *SummaryFormatDto) MarshalJSON() ([]byte, error)
func (*SummaryFormatDto) SetQuery ¶
func (s *SummaryFormatDto) SetQuery(query *string)
SetQuery sets the Query field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SummaryFormatDto) SetType ¶
func (s *SummaryFormatDto) SetType(type_ SummaryFormatDtoType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SummaryFormatDto) String ¶
func (s *SummaryFormatDto) String() string
func (*SummaryFormatDto) UnmarshalJSON ¶
func (s *SummaryFormatDto) UnmarshalJSON(data []byte) error
type SummaryFormatDtoType ¶
type SummaryFormatDtoType string
Format type
const (
SummaryFormatDtoTypeSummary SummaryFormatDtoType = "summary"
)
func NewSummaryFormatDtoTypeFromString ¶
func NewSummaryFormatDtoTypeFromString(s string) (SummaryFormatDtoType, error)
func (SummaryFormatDtoType) Ptr ¶
func (s SummaryFormatDtoType) Ptr() *SummaryFormatDtoType
type TestWebhookDto ¶
type TestWebhookDto struct {
ID string `json:"-" url:"-"`
// Event type to test
Event string `json:"event" url:"-"`
// Optional custom payload for testing
Payload map[string]any `json:"payload,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*TestWebhookDto) MarshalJSON ¶
func (t *TestWebhookDto) MarshalJSON() ([]byte, error)
func (*TestWebhookDto) SetEvent ¶
func (t *TestWebhookDto) SetEvent(event string)
SetEvent sets the Event field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TestWebhookDto) SetID ¶
func (t *TestWebhookDto) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TestWebhookDto) SetPayload ¶
func (t *TestWebhookDto) SetPayload(payload map[string]any)
SetPayload sets the Payload field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TestWebhookDto) UnmarshalJSON ¶
func (t *TestWebhookDto) UnmarshalJSON(data []byte) error
type TestWebhookResponse ¶
type TestWebhookResponse struct {
Event string `json:"event" url:"event"`
Message string `json:"message" url:"message"`
Payload map[string]any `json:"payload" url:"payload"`
Success bool `json:"success" url:"success"`
// contains filtered or unexported fields
}
func (*TestWebhookResponse) GetEvent ¶
func (t *TestWebhookResponse) GetEvent() string
func (*TestWebhookResponse) GetExtraProperties ¶
func (t *TestWebhookResponse) GetExtraProperties() map[string]interface{}
func (*TestWebhookResponse) GetMessage ¶
func (t *TestWebhookResponse) GetMessage() string
func (*TestWebhookResponse) GetPayload ¶
func (t *TestWebhookResponse) GetPayload() map[string]any
func (*TestWebhookResponse) GetSuccess ¶
func (t *TestWebhookResponse) GetSuccess() bool
func (*TestWebhookResponse) MarshalJSON ¶
func (t *TestWebhookResponse) MarshalJSON() ([]byte, error)
func (*TestWebhookResponse) SetEvent ¶
func (t *TestWebhookResponse) SetEvent(event string)
SetEvent sets the Event field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TestWebhookResponse) SetMessage ¶
func (t *TestWebhookResponse) SetMessage(message string)
SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TestWebhookResponse) SetPayload ¶
func (t *TestWebhookResponse) SetPayload(payload map[string]any)
SetPayload sets the Payload field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TestWebhookResponse) SetSuccess ¶
func (t *TestWebhookResponse) SetSuccess(success bool)
SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TestWebhookResponse) String ¶
func (t *TestWebhookResponse) String() string
func (*TestWebhookResponse) UnmarshalJSON ¶
func (t *TestWebhookResponse) UnmarshalJSON(data []byte) error
type TooManyRequestsError ¶
Rate or concurrency limit exceeded
func (*TooManyRequestsError) MarshalJSON ¶
func (t *TooManyRequestsError) MarshalJSON() ([]byte, error)
func (*TooManyRequestsError) UnmarshalJSON ¶
func (t *TooManyRequestsError) UnmarshalJSON(data []byte) error
func (*TooManyRequestsError) Unwrap ¶
func (t *TooManyRequestsError) Unwrap() error
type UnauthorizedError ¶
type UnauthorizedError struct {
}
Invalid API key
func (*UnauthorizedError) MarshalJSON ¶
func (u *UnauthorizedError) MarshalJSON() ([]byte, error)
func (*UnauthorizedError) UnmarshalJSON ¶
func (u *UnauthorizedError) UnmarshalJSON(data []byte) error
func (*UnauthorizedError) Unwrap ¶
func (u *UnauthorizedError) Unwrap() error
type UpdateWebhookDto ¶
type UpdateWebhookDto struct {
ID string `json:"-" url:"-"`
// Event types to subscribe to
Events []string `json:"events,omitempty" url:"-"`
// Enable or disable webhook
IsActive *bool `json:"isActive,omitempty" url:"-"`
// Webhook URL to send events to
URL *string `json:"url,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*UpdateWebhookDto) MarshalJSON ¶
func (u *UpdateWebhookDto) MarshalJSON() ([]byte, error)
func (*UpdateWebhookDto) SetEvents ¶
func (u *UpdateWebhookDto) SetEvents(events []string)
SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*UpdateWebhookDto) SetID ¶
func (u *UpdateWebhookDto) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*UpdateWebhookDto) SetIsActive ¶
func (u *UpdateWebhookDto) SetIsActive(isActive *bool)
SetIsActive sets the IsActive field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*UpdateWebhookDto) SetURL ¶
func (u *UpdateWebhookDto) SetURL(url *string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*UpdateWebhookDto) UnmarshalJSON ¶
func (u *UpdateWebhookDto) UnmarshalJSON(data []byte) error
type Webhook ¶
type Webhook struct {
CreatedAt *time.Time `json:"createdAt,omitempty" url:"createdAt,omitempty"`
Events []string `json:"events" url:"events"`
ID string `json:"id" url:"id"`
IsActive bool `json:"isActive" url:"isActive"`
RecentDeliveries []map[string]any `json:"recentDeliveries,omitempty" url:"recentDeliveries,omitempty"`
Secret *string `json:"secret,omitempty" url:"secret,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty" url:"updatedAt,omitempty"`
URL string `json:"url" url:"url"`
// contains filtered or unexported fields
}
func (*Webhook) GetCreatedAt ¶
func (*Webhook) GetExtraProperties ¶
func (*Webhook) GetIsActive ¶
func (*Webhook) GetRecentDeliveries ¶
func (*Webhook) GetUpdatedAt ¶
func (*Webhook) MarshalJSON ¶
func (*Webhook) SetCreatedAt ¶
SetCreatedAt sets the CreatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Webhook) SetEvents ¶
SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Webhook) SetID ¶
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Webhook) SetIsActive ¶
SetIsActive sets the IsActive field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Webhook) SetRecentDeliveries ¶
SetRecentDeliveries sets the RecentDeliveries field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Webhook) SetSecret ¶
SetSecret sets the Secret field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Webhook) SetURL ¶
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Webhook) SetUpdatedAt ¶
SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Webhook) UnmarshalJSON ¶
type WebhookConfigDto ¶
type WebhookConfigDto struct {
// Events to subscribe to
Events []string `json:"events" url:"events"`
// Additional metadata
Metadata map[string]any `json:"metadata,omitempty" url:"metadata,omitempty"`
// Optional secret used to sign direct webhook deliveries
Secret *string `json:"secret,omitempty" url:"secret,omitempty"`
// Webhook URL
URL string `json:"url" url:"url"`
// contains filtered or unexported fields
}
func (*WebhookConfigDto) GetEvents ¶
func (w *WebhookConfigDto) GetEvents() []string
func (*WebhookConfigDto) GetExtraProperties ¶
func (w *WebhookConfigDto) GetExtraProperties() map[string]interface{}
func (*WebhookConfigDto) GetMetadata ¶
func (w *WebhookConfigDto) GetMetadata() map[string]any
func (*WebhookConfigDto) GetSecret ¶
func (w *WebhookConfigDto) GetSecret() *string
func (*WebhookConfigDto) GetURL ¶
func (w *WebhookConfigDto) GetURL() string
func (*WebhookConfigDto) MarshalJSON ¶
func (w *WebhookConfigDto) MarshalJSON() ([]byte, error)
func (*WebhookConfigDto) SetEvents ¶
func (w *WebhookConfigDto) SetEvents(events []string)
SetEvents sets the Events field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookConfigDto) SetMetadata ¶
func (w *WebhookConfigDto) SetMetadata(metadata map[string]any)
SetMetadata sets the Metadata field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookConfigDto) SetSecret ¶
func (w *WebhookConfigDto) SetSecret(secret *string)
SetSecret sets the Secret field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookConfigDto) SetURL ¶
func (w *WebhookConfigDto) SetURL(url string)
SetURL sets the URL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookConfigDto) String ¶
func (w *WebhookConfigDto) String() string
func (*WebhookConfigDto) UnmarshalJSON ¶
func (w *WebhookConfigDto) UnmarshalJSON(data []byte) error
type WebhookResponse ¶
type WebhookResponse struct {
Data *Webhook `json:"data" url:"data"`
Success bool `json:"success" url:"success"`
// contains filtered or unexported fields
}
func (*WebhookResponse) GetData ¶
func (w *WebhookResponse) GetData() *Webhook
func (*WebhookResponse) GetExtraProperties ¶
func (w *WebhookResponse) GetExtraProperties() map[string]interface{}
func (*WebhookResponse) GetSuccess ¶
func (w *WebhookResponse) GetSuccess() bool
func (*WebhookResponse) MarshalJSON ¶
func (w *WebhookResponse) MarshalJSON() ([]byte, error)
func (*WebhookResponse) SetData ¶
func (w *WebhookResponse) SetData(data *Webhook)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookResponse) SetSuccess ¶
func (w *WebhookResponse) SetSuccess(success bool)
SetSuccess sets the Success field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*WebhookResponse) String ¶
func (w *WebhookResponse) String() string
func (*WebhookResponse) UnmarshalJSON ¶
func (w *WebhookResponse) UnmarshalJSON(data []byte) error
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Credits, plan, and limits
|
Credits, plan, and limits |
|
Get the complete public brand for a website
|
Get the complete public brand for a website |
|
Follow and cancel background work
|
Follow and cancel background work |
|
Manage webhook destinations
|
Manage webhook destinations |