client

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 17 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientWithAuthToken

func ClientWithAuthToken(token string) core.ClientOption

ClientWithAuthToken sets the 'Authorization: Bearer <token>' header on every request.

func ClientWithBaseURL

func ClientWithBaseURL(baseURL string) core.ClientOption

ClientWithBaseURL sets the client's base URL, overriding the default environment, if any.

func ClientWithHTTPClient

func ClientWithHTTPClient(httpClient core.HTTPClient) core.ClientOption

ClientWithHTTPClient uses the given HTTPClient to issue all HTTP requests.

func ClientWithHTTPHeader

func ClientWithHTTPHeader(httpHeader http.Header) core.ClientOption

ClientWithHTTPHeader adds the given http.Header to all requests issued by the client.

Types

type Client

type Client struct {
	IssueTriggers          *issuetriggers.Client
	Attempts               *attempts.Client
	Bookmarks              *bookmarks.Client
	Destinations           *destinations.Client
	BulkRetryEvents        *bulkretryevents.Client
	Events                 *events.Client
	BulkRetryIgnoredEvents *bulkretryignoredevents.Client
	Integrations           *integrations.Client
	Issues                 *issues.Client
	Requests               *requests.Client
	BulkRetryRequests      *bulkretryrequests.Client
	Sources                *sources.Client
	Notifications          *notifications.Client
	Transformations        *transformations.Client
	Connections            *connections.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...core.ClientOption) *Client

Jump to

Keyboard shortcuts

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