agile

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTP   common.HttpClient
	Site   *url.URL
	Auth   common.Authentication
	Board  *internal.BoardService
	Epic   *internal.EpicService
	Sprint *internal.SprintService
}

func New

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

func (*Client) Call

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

func (*Client) NewFormRequest

func (c *Client) NewFormRequest(ctx context.Context, method, apiEndpoint, contentType string, payload io.Reader) (*http.Request, error)

func (*Client) NewRequest

func (c *Client) NewRequest(ctx context.Context, method, apiEndpoint string, payload io.Reader) (*http.Request, error)

func (*Client) TransformStructToReader

func (c *Client) TransformStructToReader(structure interface{}) (io.Reader, error)

func (*Client) TransformTheHTTPResponse

func (c *Client) TransformTheHTTPResponse(response *http.Response, structure interface{}) (*models.ResponseScheme, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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