resources

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

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestOption

type RequestOption func(*requestOptions)

func WithBody

func WithBody(b []byte) RequestOption

type RestClient

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

func NewRestClient

func NewRestClient(token string, cli *http.Client) *RestClient

func (*RestClient) Delete

func (rc *RestClient) Delete(ctx context.Context, url string, v interface{}, opts ...RequestOption) error

func (*RestClient) Get

func (rc *RestClient) Get(ctx context.Context, url string, v interface{}, opts ...RequestOption) error

func (*RestClient) Patch

func (rc *RestClient) Patch(ctx context.Context, url string, v interface{}, opts ...RequestOption) error

func (*RestClient) Post

func (rc *RestClient) Post(ctx context.Context, url string, v interface{}, opts ...RequestOption) error

func (*RestClient) Put

func (rc *RestClient) Put(ctx context.Context, url string, v interface{}, opts ...RequestOption) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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