client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 17 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAuthToken added in v0.0.32

func WithAuthToken(token string) core.ClientOption

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

func WithBaseURL added in v0.0.32

func WithBaseURL(baseURL string) core.ClientOption

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

func WithHTTPClient added in v0.0.32

func WithHTTPClient(httpClient core.HTTPClient) core.ClientOption

WithHTTPClient uses the given HTTPClient to issue all HTTP requests.

func WithHTTPHeader added in v0.0.32

func WithHTTPHeader(httpHeader http.Header) core.ClientOption

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

Types

type Client

type Client struct {
	IssueTrigger          *issuetrigger.Client
	Attempt               *attempt.Client
	Bookmark              *bookmark.Client
	Destination           *destination.Client
	EventBulkRetry        *eventbulkretry.Client
	Event                 *event.Client
	IgnoredEventBulkRetry *ignoredeventbulkretry.Client
	Issue                 *issue.Client
	Request               *request.Client
	RequestBulkRetry      *requestbulkretry.Client
	Source                *source.Client
	Notification          *notification.Client
	CustomDomain          *customdomain.Client
	Transformation        *transformation.Client
	Connection            *connection.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