rest

package
v0.0.0-...-2649ce0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MIT Imports: 2 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 {
	BaseUrl  string
	Request  *fasthttp.Request
	Response *fasthttp.Response
	// contains filtered or unexported fields
}

Client is the base http client

func New

func New(url string) (*Client, error)

New returns a new client for HTTP requests.

func (*Client) Submit

func (c *Client) Submit() error

Submit submits an HTTP request.

type Config

type Config interface {
	Auth() *auth.Authentication
	SubAccount() string
}

Jump to

Keyboard shortcuts

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