client

package
v0.0.0-...-67c89e5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 11 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(client *http.Client, base *url.URL) *Client

func (*Client) Do

func (c *Client) Do(r *http.Request) (int, []byte, error)

func (*Client) Get

func (c *Client) Get(endpoint string) ([]byte, error)

func (*Client) Post

func (c *Client) Post(endpoint string, body io.Reader) ([]byte, error)

func (*Client) Put

func (c *Client) Put(endpoint string, body io.Reader) ([]byte, error)

func (*Client) Resolve

func (c *Client) Resolve() path.Resolver

func (*Client) WithSigner

func (c *Client) WithSigner(signer keypair.Full) *Client

type Interface

type Interface interface {
	Get(endpoint string) ([]byte, error)
	Put(endpoint string, body io.Reader) ([]byte, error)
	Post(endpoint string, body io.Reader) ([]byte, error)
}

Jump to

Keyboard shortcuts

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