v2

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2"

APIVersion is the version of the Jira API that this client targets.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

func New

func New(httpClient common.HTTPClient, site string) (*Client, error)

New creates a new Jira API client. If a nil httpClient is provided, http.DefaultClient will be used. If the site is empty, an error will be returned.

func (*Client) Call

func (c *Client) Call(request *http.Request, structure interface{}) (*models.ResponseScheme, error)

func (*Client) NewRequest

func (c *Client) NewRequest(ctx context.Context, method, urlStr, contentType string, body interface{}) (*http.Request, error)

NewRequest creates an API request.

Jump to

Keyboard shortcuts

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