client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 7 Imported by: 1

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 NewClient

func NewClient(client *http.Client, base string) *Client

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, pathElem []string) (*http.Response, error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, pathElem []string) (*http.Response, error)

func (*Client) Put

func (c *Client) Put(ctx context.Context, pathElem []string, contentType string, body io.Reader) (*http.Response, error)

type Proxy

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

func NewProxy

func NewProxy(client *Client) *Proxy

func (*Proxy) Activate

func (p *Proxy) Activate(ctx context.Context, proxyID string) error

func (*Proxy) Delete

func (p *Proxy) Delete(ctx context.Context, proxyID string) error

func (*Proxy) Register

func (p *Proxy) Register(ctx context.Context, proxy entity.Proxy) error

Jump to

Keyboard shortcuts

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