freshdesk

package
v0.0.0-...-db8cf13 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseNexPageLinkHeader

func ParseNexPageLinkHeader(linkHeader string) string

ParseLinkHeader extracts the next page URL from the Link Header response.

Types

type Connector

type Connector struct {
	BaseURL string
	Client  *common.JSONHTTPClient
}

func NewConnector

func NewConnector(opts ...Option) (*Connector, error)

func (*Connector) HTTPClient

func (conn *Connector) HTTPClient() *common.HTTPClient

func (*Connector) JSONHTTPClient

func (conn *Connector) JSONHTTPClient() *common.JSONHTTPClient

JSONHTTPClient returns the underlying JSON HTTP client.

func (*Connector) ListObjectMetadata

func (conn *Connector) ListObjectMetadata(ctx context.Context,
	objectNames []string,
) (*common.ListObjectMetadataResult, error)

func (*Connector) Provider

func (conn *Connector) Provider() providers.Provider

func (*Connector) Read

func (conn *Connector) Read(ctx context.Context, config common.ReadParams) (*common.ReadResult, error)

func (*Connector) String

func (conn *Connector) String() string

func (*Connector) Write

func (conn *Connector) Write(ctx context.Context, config common.WriteParams) (*common.WriteResult, error)

type Option

type Option = func(params *parameters)

func WithAuthenticatedClient

func WithAuthenticatedClient(client common.AuthenticatedHTTPClient) Option

func WithClient

func WithClient(
	ctx context.Context, client *http.Client,
	username string, password string,
	opts ...common.HeaderAuthClientOption,
) Option

func WithWorkspace

func WithWorkspace(workspace string) Option

WithWorkspace sets the freshdesk API instance to use for the connector. It's required.

Jump to

Keyboard shortcuts

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