client

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebClient

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

func NewDebClient

func NewDebClient(accessToken *string) *DebClient

func (*DebClient) Get

func (debClient *DebClient) Get(uri string, format string) (*http.Response, error)

func (*DebClient) Post

func (debClient *DebClient) Post(uri string, contentType string, body *bytes.Buffer) (*http.Response, error)

type IDebClient

type IDebClient interface {
	// Post makes a POST request to one of Debricked's API endpoints
	Post(uri string, contentType string, body *bytes.Buffer) (*http.Response, error)
	// Get makes a GET request to one of Debricked's API endpoints
	Get(uri string, format string) (*http.Response, error)
}

Jump to

Keyboard shortcuts

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