muxclient

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 14 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 NewClient

func NewClient(baseURL string, opts ...ClientOption) *Client

func (*Client) Do

func (c *Client) Do(ctx context.Context, req any, resp any, opts ...ClientDoOption) error

func (*Client) HttpDo

func (c *Client) HttpDo(httpReq *http.Request, resp any) error

func (*Client) Request

func (c *Client) Request(ctx context.Context, req any, opts ...ClientDoOption) (*http.Request, error)

type ClientDoOption

type ClientDoOption func(*ClientDoOptions)

func WithPath

func WithPath(path string) ClientDoOption

type ClientDoOptions

type ClientDoOptions struct {
	// contains filtered or unexported fields
}

type ClientOption

type ClientOption func(*ClientOptions)

func WithClient

func WithClient(client *http.Client) ClientOption

type ClientOptions

type ClientOptions struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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