gclientx

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 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 {
	// contains filtered or unexported fields
}

func New

func New(client *gclient.Client) *Client

func (*Client) Config

func (c *Client) Config(fn func(client *gclient.Client) *gclient.Client) *Client

func (*Client) GetBytes

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

func (*Client) GetContent

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

func (*Client) PostBytes

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

func (*Client) PostContent

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

func (*Client) RequestBytes

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

func (*Client) RequestContent

func (c *Client) RequestContent(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