requests

package
v0.0.0-...-9b34e06 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2020 License: MIT Imports: 6 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 {
	Endpoint string
}

Client is the basic class for performing http requests

func NewClient

func NewClient() *Client

NewClient returns a new empty client

func (*Client) Get

func (c *Client) Get(endpoint string, params map[string]string) *grequests.Response

Get sends a simple Get requests to specific endpoint

func (*Client) Post

func (c *Client) Post(endpoint string, params map[string]string) *grequests.Response

Post sends a simple Post requests to specific endpoint

func (*Client) Upload

func (c *Client) Upload(endpoint string, filename string) *grequests.Response

Upload sends a file into endpoint, via a post requests

type GitClient

type GitClient struct {
}

GitClient is the basic structure for performing git-based operations

func NewGitClient

func NewGitClient() GitClient

NewGitClient returns a new Git Client

func (*GitClient) Clone

func (gitclient *GitClient) Clone(remoteURL string, targetFolder string)

Clone downloads remote contents from remoteURL to targetFolder

Jump to

Keyboard shortcuts

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