client

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 11 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 {
	// contains filtered or unexported fields
}

func New

func New(username, apiKey string, options ...Option) *Client

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, path string) error

func (*Client) Get

func (c *Client) Get(ctx context.Context, path string, target interface{}) error

func (*Client) Patch

func (c *Client) Patch(ctx context.Context, path string, target interface{}, body interface{}) error

func (*Client) Post

func (c *Client) Post(ctx context.Context, path string, target interface{}, body interface{}) error

type Option

type Option func(c *Client)

func OptionWithBaseURL

func OptionWithBaseURL(baseURL string) Option

Jump to

Keyboard shortcuts

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