gclientx

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client *gclient.Client
	// contains filtered or unexported fields
}

func New

func New(client ...*gclient.Client) *Client

func (*Client) GetBytesErr added in v0.2.0

func (c *Client) GetBytesErr(ctx context.Context, url string, data ...interface{}) ([]byte, error)

func (*Client) GetContentErr added in v0.2.0

func (c *Client) GetContentErr(ctx context.Context, url string, data ...interface{}) (string, error)

func (*Client) PostBytesErr added in v0.2.0

func (c *Client) PostBytesErr(ctx context.Context, url string, data ...interface{}) ([]byte, error)

func (*Client) PostContentErr added in v0.2.0

func (c *Client) PostContentErr(ctx context.Context, url string, data ...interface{}) (string, error)

func (*Client) RequestBytesErr added in v0.2.0

func (c *Client) RequestBytesErr(ctx context.Context, method string, url string, data ...interface{}) ([]byte, error)

func (*Client) RequestContentErr added in v0.2.0

func (c *Client) RequestContentErr(ctx context.Context, method string, url string, data ...interface{}) (string, error)

func (*Client) SetErrorFn

func (c *Client) SetErrorFn(errorFn func(ctx context.Context, format string, v ...interface{})) *Client

func (*Client) SetErrorLogger

func (c *Client) SetErrorLogger(logger *glog.Logger) *Client

Jump to

Keyboard shortcuts

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