client

package
v0.0.0-...-3aa76b9 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 15 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 {
	Issuer    jwt.Issuer
	BaseURL   string
	Role      string
	UserAgent string
	RPCClient rpc.Client
}

Client rest client.

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, path string, v interface{}) error

Delete performs a DELETE request.

func (*Client) Get

func (c *Client) Get(ctx context.Context, path string, v interface{}) error

Get performs a GET request.

func (*Client) Post

func (c *Client) Post(ctx context.Context, path string, body, v interface{}) error

Post performs a POST request.

func (*Client) Put

func (c *Client) Put(ctx context.Context, path string, body, v interface{}) error

Put performs a PUT request.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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