client

package
v0.0.0-...-0c6783f Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPageSize = 100

Empirically tested that this is the largest page size that HubSpot allows.

Variables

This section is empty.

Functions

func New

func ObjectTypeMultiplex

func ObjectTypeMultiplex(objectTypes []string) func(schema.ClientMeta) []schema.ClientMeta

func ResolveObjectType

func ResolveObjectType(_ context.Context, meta schema.ClientMeta, r *schema.Resource, _ schema.Column) error

Types

type Client

type Client struct {
	Authorizer *hubspot.TokenAuthorizer

	Spec spec.Spec

	RateLimiter *rate.Limiter

	// Used for multiplexing when fetching `crm_pipelines`.
	ObjectType string

	Logger zerolog.Logger
}

func (*Client) ID

func (c *Client) ID() string

Directories

Path Synopsis
gen

Jump to

Keyboard shortcuts

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