api

package
v0.0.0-...-4c5a95e Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StreamRequest

func StreamRequest(endpoint string, buffer chan string, apiSignal chan bool) error

Types

type Response

type Response struct {
	StatusCode int         `json:"statusCode"`
	Body       interface{} `json:"body"`
}

func DeleteRequest

func DeleteRequest(endpoint string) (*Response, error)

func GetRequest

func GetRequest(endpoint string) (*Response, error)

func PatchRequest

func PatchRequest(endpoint string, payload string) (*Response, error)

func PostRequest

func PostRequest(endpoint string, payload string) (*Response, error)

Jump to

Keyboard shortcuts

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