scylla

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithBaseURL

func WithBaseURL(s string) func(*Client)

func WithCookieJar

func WithCookieJar() func(*Client)

func WithGlobalCookieJar

func WithGlobalCookieJar() func(*Client)

func WithRetryPolicy

func WithRetryPolicy(r *retrier.Retrier) func(*Client)

func WithUserAgent

func WithUserAgent(s string) func(*Client)

Types

type Client

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

func New

func New(opts ...func(*Client)) *Client

func (*Client) BasicSign

func (c *Client) BasicSign(req *http.Request, user string, secret []byte) error

func (*Client) Do

func (c *Client) Do(req *http.Request, out interface{}) (*http.Response, error)

func (*Client) Request

func (c *Client) Request(ctx context.Context, method string, payload interface{}, format string, args ...interface{}) *http.Request

func (*Client) With

func (c *Client) With(opts ...func(*Client)) *Client

Jump to

Keyboard shortcuts

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