client

package
v0.0.0-...-386ad9e Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Unlicense Imports: 6 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, password string, timeout time.Duration) *Client

func (*Client) BulkKeyRequests

func (c *Client) BulkKeyRequests(ctx context.Context, getter KeyGetter, keys []string) ([]interface{}, error)

func (*Client) MakeGETRequest

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

type KeyGetter

type KeyGetter interface {
	GetByKey(ctx context.Context, key string) (interface{}, error)
}

Jump to

Keyboard shortcuts

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